1. evildmp
  2. south


Daniele Procida  committed 71091a2 Draft

Note on referring to models in datamigration template

  • Participants
  • Parent commits e8cad54
  • Branches default

Comments (0)

Files changed (1)

File south/management/commands/datamigration.py

View file
  • Ignore whitespace
     def forwards(self, orm):
         "Write your forwards methods here."
-        # Note: Remember to use orm['appname.ModelName'] rather than "from appname.models..."
+        # Note: Don't use "from appname.models import ModelName". 
+        # Use orm.ModelName to refer to models in this application,
+        # and orm['appname.ModelName'] for models in other applications.
     def backwards(self, orm):
         "Write your backwards methods here."