diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-11 21:09:36 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-07-11 21:09:36 -0500 |
commit | c2ddd85e4ac6c50289711fb5673dd716329a569b (patch) | |
tree | e336f773f6243af972e5c6014131905b5db771b2 /mediagoblin/db/models.py | |
parent | 0c915735d5053a75037165105723848c17415ec8 (diff) | |
download | mediagoblin-c2ddd85e4ac6c50289711fb5673dd716329a569b.tar.lz mediagoblin-c2ddd85e4ac6c50289711fb5673dd716329a569b.tar.xz mediagoblin-c2ddd85e4ac6c50289711fb5673dd716329a569b.zip |
Removing old style migrations... not in use anymore
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r-- | mediagoblin/db/models.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py index 279cb9f2..918dee0e 100644 --- a/mediagoblin/db/models.py +++ b/mediagoblin/db/models.py @@ -16,12 +16,11 @@ import datetime, uuid -from mongokit import Document, Set +from mongokit import Document from mediagoblin import util from mediagoblin.auth import lib as auth_lib from mediagoblin import mg_globals -from mediagoblin.db import migrations from mediagoblin.db.util import ASCENDING, DESCENDING, ObjectId ################### @@ -59,8 +58,6 @@ class User(Document): 'verification_key': lambda: unicode(uuid.uuid4()), 'is_admin': False} - migration_handler = migrations.UserMigration - def check_login(self, password): """ See if a user can login with this password @@ -106,8 +103,6 @@ class MediaEntry(Document): 'created': datetime.datetime.utcnow, 'state': u'unprocessed'} - migration_handler = migrations.MediaEntryMigration - def get_comments(self): return self.db.MediaComment.find({ 'media_entry': self['_id']}).sort('created', DESCENDING) @@ -196,6 +191,7 @@ class MediaComment(Document): def author(self): return self.db.User.find_one({'_id': self['author']}) + REGISTER_MODELS = [ MediaEntry, User, |