this should fix #354

This commit is contained in:
Jakob Kramer
2011-05-29 19:15:46 +02:00
parent dfd18edadc
commit ce72a1bb15
4 changed files with 13 additions and 7 deletions

View File

@@ -38,6 +38,7 @@ class User(Document):
structure = {
'username': unicode,
'username_repr': unicode,
'email': unicode,
'created': datetime.datetime,
'plugin_data': dict, # plugins can dump stuff here.
@@ -48,7 +49,7 @@ class User(Document):
'is_admin': bool,
}
required_fields = ['username', 'created', 'pw_hash', 'email']
required_fields = ['username', 'username_repr', 'created', 'pw_hash', 'email']
default_values = {
'created': datetime.datetime.utcnow,