diff options
author | Jakob Kramer <jakob.kramer@gmx.de> | 2011-05-29 19:15:46 +0200 |
---|---|---|
committer | Jakob Kramer <jakob.kramer@gmx.de> | 2011-05-29 19:15:46 +0200 |
commit | ce72a1bb15f421725696cc3eea28b94de098f8f2 (patch) | |
tree | 17614d6ab87e4f71c517c9632fbb9b5a68a078f5 /mediagoblin/db/models.py | |
parent | dfd18edadcae821a5b6dc0bb48310e24caa796ec (diff) | |
download | mediagoblin-ce72a1bb15f421725696cc3eea28b94de098f8f2.tar.lz mediagoblin-ce72a1bb15f421725696cc3eea28b94de098f8f2.tar.xz mediagoblin-ce72a1bb15f421725696cc3eea28b94de098f8f2.zip |
this should fix #354
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 37420834..0b4390d7 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -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, |