From c519004ce1d39b79f723f8744a2dd8be5b39c713 Mon Sep 17 00:00:00 2001 From: aanersc Date: Tue, 13 Oct 2020 07:40:46 +0200 Subject: [PATCH] #51 first delete the intermediary model then create m2m relationship --- geospaas/catalog/migrations/0009_auto_20201012_0905.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geospaas/catalog/migrations/0009_auto_20201012_0905.py b/geospaas/catalog/migrations/0009_auto_20201012_0905.py index 203d2662..854273b5 100644 --- a/geospaas/catalog/migrations/0009_auto_20201012_0905.py +++ b/geospaas/catalog/migrations/0009_auto_20201012_0905.py @@ -16,12 +16,12 @@ class Migration(migrations.Migration): name='parameters', field=models.ManyToManyField(to='vocabularies.Parameter'), ), + migrations.DeleteModel( + name='DatasetParameter', + ), migrations.AddField( model_name='dataset', name='parameters', field=models.ManyToManyField(to='vocabularies.Parameter'), ), - migrations.DeleteModel( - name='DatasetParameter', - ), ]