diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-08 20:50:45 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-08 20:51:44 -0600 |
commit | de5b713f7301c59b7e658c85c8596fb67f33ecf6 (patch) | |
tree | 631483e0717b6ac4db6e703c47ae35812486a0d8 /main | |
parent | b8976f60fd306483071a7f3c50df6226936ba2ee (diff) |
Make sure we use orm in migrations
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/migrations/0003_migrate_maintainer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/migrations/0003_migrate_maintainer.py b/main/migrations/0003_migrate_maintainer.py index 8d759271..8d3e1771 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 = { |