Commits

Anonymous committed 972b9be

Andy McCurdy's migrations import patch

  • Participants
  • Parent commits 1b7449c

Comments (0)

Files changed (1)

     """
     Returns the migration class implied by 'name'.
     """
-    module = __import__(app_name + ".migrations." + name, locals(), globals())
-    return getattr(module.migrations, name).Migration
+    module = __import__(app_name + ".migrations." + name, '', '', [''])
+    return module.Migration
 
 
 def run_forwards(app_name, migrations, fake=False):