diff options
author | Joar Wandborg <git@wandborg.com> | 2011-05-07 02:30:35 +0200 |
---|---|---|
committer | Joar Wandborg <git@wandborg.com> | 2011-05-07 02:30:35 +0200 |
commit | b16ebe0e13247c94a3dc545761af395166956757 (patch) | |
tree | 6cb4c379da80d3f01c3e816888fca6b0615ea41d /mediagoblin/models.py | |
parent | 85e1bc316ec7010d06e95b35d3496ad3ecf7ef78 (diff) | |
download | mediagoblin-b16ebe0e13247c94a3dc545761af395166956757.tar.lz mediagoblin-b16ebe0e13247c94a3dc545761af395166956757.tar.xz mediagoblin-b16ebe0e13247c94a3dc545761af395166956757.zip |
Changed the method used to generate uuids for verification_key, this one works, thanks paroneayea
Signed-off-by: Joar Wandborg <git@wandborg.com>
Diffstat (limited to 'mediagoblin/models.py')
-rw-r--r-- | mediagoblin/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/models.py b/mediagoblin/models.py index c361feac..e1198187 100644 --- a/mediagoblin/models.py +++ b/mediagoblin/models.py @@ -50,7 +50,7 @@ class User(Document): 'created': datetime.datetime.utcnow, 'email_verified': False, 'status': u'needs_email_verification', - 'verification_key': uuid.uuid4 } + 'verification_key': lambda: unicode( uuid.uuid4() ) } def check_login(self, password): """ |