Skip to content

Commit

Permalink
#1: corrected app label in migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenwh committed Feb 5, 2019
1 parent 6208a4b commit ebe676a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geospaas/catalog/migrations/0007b_migrate_source_data.py
Original file line number Diff line number Diff line change
@@ -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]

Expand Down

0 comments on commit ebe676a

Please sign in to comment.