X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/fda9072f7469fc178347e74fb6ff9309c98a94d0..e977b7baf9a6e653d6040e9487b7a6cb5fda5fa2:/apps/infopages/migrations/0001_initial.py?ds=inline diff --git a/apps/infopages/migrations/0001_initial.py b/apps/infopages/migrations/0001_initial.py index 94ca2b301..a28ce3aa2 100644 --- a/apps/infopages/migrations/0001_initial.py +++ b/apps/infopages/migrations/0001_initial.py @@ -5,9 +5,9 @@ from south.v2 import SchemaMigration 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)), @@ -50,18 +50,19 @@ class Migration(SchemaMigration): ('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'}, @@ -105,5 +106,5 @@ class Migration(SchemaMigration): 'title_uk': ('django.db.models.fields.CharField', [], {'max_length': '120', 'null': True, 'blank': True}) } } - + complete_apps = ['infopages']