X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9fc7f1c883b4f5f582dd864ad468ab73f95c62f4..7d88dafd94f9bd8316f4828c13ee88bf87552348:/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..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'])