document stages on import,
[redakcja.git] / apps / dvcs / migrations / 0001_initial.py
index d9f0984..6bff095 100644 (file)
@@ -4,6 +4,7 @@ from south.db import db
 from south.v2 import SchemaMigration
 from django.db import models
 
+
 class Migration(SchemaMigration):
 
     def forwards(self, orm):
@@ -52,6 +53,10 @@ class Migration(SchemaMigration):
         ))
         db.send_create_signal('dvcs', ['Document'])
 
+        if not db.dry_run:
+            from django.core.management import call_command
+            call_command("loaddata", "stages.json")
+
 
     def backwards(self, orm):