Skip to content

Commit 8900803

Browse files
committed
Add realname attribute to user in minimal template schema
The `roundup-demo` command assumes that the `user` has a `realname` attribute when it creates the demo user. Without adding the `realname` attribute in the `minimal` template's schema an error will occur when a user tries to create a new demo based on it.
1 parent f84820f commit 8900803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

share/roundup/templates/minimal/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
# Note: roles is a comma-separated string of Role names
1515
user = Class(db, "user", username=String(), password=Password(),
16-
address=String(), alternate_addresses=String(), roles=String())
16+
address=String(), realname=String(), alternate_addresses=String(),
17+
roles=String())
1718
user.setkey("username")
1819
db.security.addPermission(name='Register', klass='user',
1920
description='User is allowed to register new user')

0 commit comments

Comments
 (0)