Commits

Andrew Godwin committed a0a316e

Fix ORMs on a failed forwards()' backwards()

Comments (0)

Files changed (1)

south/migration/migrators.py

         raise NotImplementedError()
 
     def backwards(self, migration):
-        return self._wrap_direction(migration.backwards(), self.orm(migration))
+        return self._wrap_direction(migration.backwards(), migration.prev_orm())
 
     def direction(self, migration):
         raise NotImplementedError()
         return migration.orm()
 
     def forwards(self, migration):
-        return self._wrap_direction(migration.forwards(), self.orm(migration))
+        return self._wrap_direction(migration.forwards(), migration.orm())
 
     direction = forwards