aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authorcfdv <caldavis@gmail.com>2011-06-20 22:47:43 -0500
committercfdv <caldavis@gmail.com>2011-06-20 22:48:25 -0500
commit0472653ee4763e2f045632d49a9eed729a491f97 (patch)
tree640646a467ceb14764716cce51f8462c26efe9cd /mediagoblin/db/models.py
parent17bb7c388b1f6190a43945e8e2f3e96bb826fb72 (diff)
downloadmediagoblin-0472653ee4763e2f045632d49a9eed729a491f97.tar.lz
mediagoblin-0472653ee4763e2f045632d49a9eed729a491f97.tar.xz
mediagoblin-0472653ee4763e2f045632d49a9eed729a491f97.zip
assigns migration steps to User database objects
adds the migration_handler to the User db class, connecting the migration steps in ../db/migrations.py to the migration code in gmg_commands
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index b3de7793..600b79ff 100644
--- 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):
"""