Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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.
  • Loading branch information
jerrykan committed Feb 4, 2021
commit 8900803d86471bb1f06aff615d7c69dd6c5ac094
3 changes: 2 additions & 1 deletion share/roundup/templates/minimal/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

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