1. Carl Meyer
  2. south

Commits

Andrew Godwin  committed e8c524d

Better missing-model error message

  • Participants
  • Parent commits dbd03b0
  • Branches default

Comments (0)

Files changed (1)

File south/orm.py

View file
         try:
             return self.models[fullname]
         except KeyError:
-            raise AttributeError("The model '%s' from the app '%s' is not available in this migration." % (key, self.default_app))
+            raise AttributeError("The model '%s' from the app '%s' is not available in this migration. (Did you use orm.ModelName, not orm['app.ModelName']?)" % (key, self.default_app))
     
     
     def __getitem__(self, key):