Commits

Daniele Procida  committed 71091a2

Note on referring to models in datamigration template

  • Participants
  • Parent commits e8cad54

Comments (0)

Files changed (1)

File south/management/commands/datamigration.py

 
     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."