aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py3
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,