Merge branch 'picture' into pretty
[wolnelektury.git] / apps / infopages / migrations / 0001_initial.py
index 94ca2b3..a28ce3a 100644 (file)
@@ -5,9 +5,9 @@ from south.v2 import SchemaMigration
 from django.db import models
 
 class Migration(SchemaMigration):
 from django.db import models
 
 class Migration(SchemaMigration):
-    
+
     def forwards(self, orm):
     def forwards(self, orm):
-        
+
         # Adding model 'InfoPage'
         db.create_table('infopages_infopage', (
             ('title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
         # Adding model 'InfoPage'
         db.create_table('infopages_infopage', (
             ('title_de', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
@@ -50,18 +50,19 @@ class Migration(SchemaMigration):
             ('page_title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
         ))
 
             ('page_title_ru', self.gf('django.db.models.fields.CharField')(max_length=120, null=True, blank=True)),
         ))
 
-        from django.core.management import call_command
-        call_command("loaddata", "wl_data")
+        if not db.dry_run:
+            from django.core.management import call_command
+            call_command("loaddata", "wl_data")
 
         db.send_create_signal('infopages', ['InfoPage'])
 
         db.send_create_signal('infopages', ['InfoPage'])
-    
-    
+
+
     def backwards(self, orm):
     def backwards(self, orm):
-        
+
         # Deleting model 'InfoPage'
         db.delete_table('infopages_infopage')
         # Deleting model 'InfoPage'
         db.delete_table('infopages_infopage')
-    
-    
+
+
     models = {
         'infopages.infopage': {
             'Meta': {'object_name': 'InfoPage'},
     models = {
         'infopages.infopage': {
             'Meta': {'object_name': 'InfoPage'},
@@ -105,5 +106,5 @@ class Migration(SchemaMigration):
             'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True})
         }
     }
             'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True})
         }
     }
-    
+
     complete_apps = ['infopages']
     complete_apps = ['infopages']