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
This commit is contained in:
parent
17bb7c388b
commit
0472653ee4
@ -58,6 +58,8 @@ class User(Document):
|
|||||||
'status': u'needs_email_verification',
|
'status': u'needs_email_verification',
|
||||||
'verification_key': lambda: unicode(uuid.uuid4()),
|
'verification_key': lambda: unicode(uuid.uuid4()),
|
||||||
'is_admin': False}
|
'is_admin': False}
|
||||||
|
|
||||||
|
migration_handler = migrations.UserMigration
|
||||||
|
|
||||||
def check_login(self, password):
|
def check_login(self, password):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user