aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/models.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 13:35:18 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-04-03 13:35:18 -0500
commit24181820162ad73823dcebf902c951200b90559b (patch)
tree5a19429397f0b3e2e85aff55e143ad492733c0b0 /mediagoblin/models.py
parenta0598d5cae99f1a8c01c01390dff5f1f94e12d0f (diff)
downloadmediagoblin-24181820162ad73823dcebf902c951200b90559b.tar.lz
mediagoblin-24181820162ad73823dcebf902c951200b90559b.tar.xz
mediagoblin-24181820162ad73823dcebf902c951200b90559b.zip
Registering almost works right :)
Diffstat (limited to 'mediagoblin/models.py')
-rw-r--r--mediagoblin/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mediagoblin/models.py b/mediagoblin/models.py
index 31ddf13c..b1d63181 100644
--- a/mediagoblin/models.py
+++ b/mediagoblin/models.py
@@ -48,15 +48,18 @@ class User(Document):
structure = {
'username': unicode,
+ 'email': unicode,
'created': datetime.datetime,
'plugin_data': dict, # plugins can dump stuff here.
'pw_hash': unicode,
+ 'email_verified': bool,
}
- required_fields = ['username', 'created', 'pw_hash']
+ required_fields = ['username', 'created', 'pw_hash', 'email']
default_values = {
- 'created': datetime.datetime.utcnow}
+ 'created': datetime.datetime.utcnow,
+ 'email_verified': False}
REGISTER_MODELS = [MediaEntry, User]