From de5b713f7301c59b7e658c85c8596fb67f33ecf6 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 8 Feb 2010 20:50:45 -0600 Subject: Make sure we use orm in migrations Signed-off-by: Dan McGee --- main/migrations/0003_migrate_maintainer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main') 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 = { -- cgit v1.2.3-54-g00ecf