from django.db import models
class Migration(SchemaMigration):
-
+
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)),
('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'])
-
-
+
+
def backwards(self, orm):
-
+
# Deleting model 'InfoPage'
db.delete_table('infopages_infopage')
-
-
+
+
models = {
'infopages.infopage': {
'Meta': {'object_name': 'InfoPage'},
'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True})
}
}
-
+
complete_apps = ['infopages']