From b16ebe0e13247c94a3dc545761af395166956757 Mon Sep 17 00:00:00 2001 From: Joar Wandborg Date: Sat, 7 May 2011 02:30:35 +0200 Subject: [PATCH] Changed the method used to generate uuids for verification_key, this one works, thanks paroneayea Signed-off-by: Joar Wandborg --- mediagoblin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): """