From 9b032e06156aa011e5d78d0d9ea297420cb33c2e Mon Sep 17 00:00:00 2001 From: jopesy Date: Mon, 8 Jul 2019 17:02:33 +0300 Subject: [PATCH] Add on_delete args to CMS plugin migration for Django 2 support --- .../cms_plugins/form_designer_form/migrations/0001_initial.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/form_designer/contrib/cms_plugins/form_designer_form/migrations/0001_initial.py b/form_designer/contrib/cms_plugins/form_designer_form/migrations/0001_initial.py index a561d906..19ca7adf 100644 --- a/form_designer/contrib/cms_plugins/form_designer_form/migrations/0001_initial.py +++ b/form_designer/contrib/cms_plugins/form_designer_form/migrations/0001_initial.py @@ -30,11 +30,13 @@ class Migration(migrations.Migration): primary_key=True, to='cms.CMSPlugin', parent_link=True, + on_delete=models.CASCADE, **field_kwargs)), ('form_definition', models.ForeignKey( verbose_name='form', - to='form_designer.FormDefinition')), + to='form_designer.FormDefinition', + on_delete=models.CASCADE)), ], options={ 'abstract': False,