projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17bb7c3
)
assigns migration steps to User database objects
author
cfdv
<caldavis@gmail.com>
Tue, 21 Jun 2011 03:47:43 +0000
(22:47 -0500)
committer
cfdv
<caldavis@gmail.com>
Tue, 21 Jun 2011 03:48:25 +0000
(22:48 -0500)
adds the migration_handler to the User db class, connecting the
migration steps in ../db/migrations.py to the migration code in
gmg_commands
mediagoblin/db/models.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/db/models.py
b/mediagoblin/db/models.py
index b3de7793d375568e172f2fac467f8b0889d7c5ce..600b79ff28485c28673ecec6cef3cff94303df31 100644
(file)
--- a/
mediagoblin/db/models.py
+++ b/
mediagoblin/db/models.py
@@
-58,6
+58,8
@@
class User(Document):
'status': u'needs_email_verification',
'verification_key': lambda: unicode(uuid.uuid4()),
'is_admin': False}
+
+ migration_handler = migrations.UserMigration
def check_login(self, password):
"""