Fixes traceback on registration
authorWill Kahn-Greene <willg@bluesock.org>
Mon, 25 Apr 2011 01:53:57 +0000 (21:53 -0400)
committerWill Kahn-Greene <willg@bluesock.org>
Mon, 25 Apr 2011 01:53:57 +0000 (21:53 -0400)
values must be unicode.

mediagoblin/models.py

index 9e0ee8cac9b0611ec20158a13d877a8344fdf380..eef59ed4d553311d49e0e0c49c828e2e308dcbee 100644 (file)
@@ -49,7 +49,7 @@ class User(Document):
         'created': datetime.datetime.utcnow,
         'email_verified': False,
         # TODO: shouldn't be active by default, must have email registration
-        'status': 'active'}
+        'status': u'active'}
 
     def check_login(self, password):
         """