Changed the method used to generate uuids for verification_key, this one works, thank...
authorJoar Wandborg <git@wandborg.com>
Sat, 7 May 2011 00:30:35 +0000 (02:30 +0200)
committerJoar Wandborg <git@wandborg.com>
Sat, 7 May 2011 00:30:35 +0000 (02:30 +0200)
Signed-off-by: Joar Wandborg <git@wandborg.com>
mediagoblin/models.py

index c361feac5a9db16200d7db3fa125982f8e399e20..e11981871c1665e2e4342c98066e10c86359dfd7 100644 (file)
@@ -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):
         """