From 7ce69b7413803e04e99b1b8ad1cf3d250160bb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20T=C3=A9llez?= Date: Mon, 27 Jul 2020 17:55:33 +0200 Subject: [PATCH 1/2] Missing on_delete --- cmsplugin_svg/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cmsplugin_svg/models.py b/cmsplugin_svg/models.py index c09486b..6024599 100644 --- a/cmsplugin_svg/models.py +++ b/cmsplugin_svg/models.py @@ -46,6 +46,7 @@ class SvgImage(CMSPlugin): max_length=128, blank=True, help_text=_('Optional label for this plugin.'), + on_delete=models.CASCADE ) id_name = models.CharField( From 253c8a3f458aaa9a8ec1da8ffb8973f4d1c9c9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20T=C3=A9llez?= Date: Mon, 27 Jul 2020 18:47:06 +0200 Subject: [PATCH 2/2] Missing on_delete --- cmsplugin_svg/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmsplugin_svg/models.py b/cmsplugin_svg/models.py index 6024599..80e634d 100644 --- a/cmsplugin_svg/models.py +++ b/cmsplugin_svg/models.py @@ -39,14 +39,14 @@ class SvgImage(CMSPlugin): CMSPlugin, related_name='+', parent_link=True, + on_delete=models.CASCADE ) label = models.CharField( _('label'), max_length=128, blank=True, - help_text=_('Optional label for this plugin.'), - on_delete=models.CASCADE + help_text=_('Optional label for this plugin.') ) id_name = models.CharField(