From ebe676ac190f3c0af6e0b21613b273a0534a6d3b Mon Sep 17 00:00:00 2001 From: mortenwh Date: Tue, 5 Feb 2019 13:03:53 +0100 Subject: [PATCH] #1: corrected app label in migration file --- geospaas/catalog/migrations/0007b_migrate_source_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geospaas/catalog/migrations/0007b_migrate_source_data.py b/geospaas/catalog/migrations/0007b_migrate_source_data.py index 3505999a..e33f8afc 100644 --- a/geospaas/catalog/migrations/0007b_migrate_source_data.py +++ b/geospaas/catalog/migrations/0007b_migrate_source_data.py @@ -1,12 +1,12 @@ from django.db import migrations def copy_source(apps, schema_editor): - Dataset = apps.get_model('geospaas.catalog', 'Dataset') + Dataset = apps.get_model('catalog', 'Dataset') for ds in Dataset.objects.all(): ds.sources.add(ds.source) def copy_source_backwards(apps, schema_editor): - Dataset = apps.get_model('geospaas.catalog', 'Dataset') + Dataset = apps.get_model('catalog', 'Dataset') for ds in Dataset.objects.all(): ds.source = ds.sources.all()[0]