X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fc7f1c883b4f5f582dd864ad468ab73f95c62f4..dcae693e6618e9da605767a5e254adb75016ca76:/apps/infopages/migrations/0001_initial.py?ds=sidebyside diff --git a/apps/infopages/migrations/0001_initial.py b/apps/infopages/migrations/0001_initial.py index 94ca2b301..a1289a2c6 100644 --- a/apps/infopages/migrations/0001_initial.py +++ b/apps/infopages/migrations/0001_initial.py @@ -50,8 +50,9 @@ 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'])