summaryrefslogtreecommitdiffstats
path: root/main/migrations
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-09 03:50:45 +0100
committerDan McGee <dan@archlinux.org>2010-02-09 03:51:44 +0100
commitde5b713f7301c59b7e658c85c8596fb67f33ecf6 (patch)
tree631483e0717b6ac4db6e703c47ae35812486a0d8 /main/migrations
parentb8976f60fd306483071a7f3c50df6226936ba2ee (diff)
downloadarchweb-de5b713f7301c59b7e658c85c8596fb67f33ecf6.tar.gz
archweb-de5b713f7301c59b7e658c85c8596fb67f33ecf6.tar.xz
Make sure we use orm in migrations
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/migrations')
-rw-r--r--main/migrations/0003_migrate_maintainer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/migrations/0003_migrate_maintainer.py b/main/migrations/0003_migrate_maintainer.py
index 8d75927..8d3e177 100644
--- a/main/migrations/0003_migrate_maintainer.py
+++ b/main/migrations/0003_migrate_maintainer.py
@@ -8,13 +8,13 @@ class Migration:
no_dry_run = True
def forwards(self, orm):
- Package.objects.filter(maintainer=0).update(maintainer=None)
+ orm.Package.objects.filter(maintainer=0).update(maintainer=None)
def backwards(self, orm):
# This will fail if foreign keys are in effect. Let's hope we'll
# never have to go backwards. :P
- Package.objects.filter(maintainer=None).update(maintainer=0)
+ orm.Package.objects.filter(maintainer=None).update(maintainer=0)
models = {