diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-04-03 13:35:18 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-04-03 13:35:18 -0500 |
commit | 24181820162ad73823dcebf902c951200b90559b (patch) | |
tree | 5a19429397f0b3e2e85aff55e143ad492733c0b0 /mediagoblin/models.py | |
parent | a0598d5cae99f1a8c01c01390dff5f1f94e12d0f (diff) | |
download | mediagoblin-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.py | 7 |
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] |