Skip to content

Commit 299746d

Browse files
committed
fixes arteria#65
1 parent 4ed91f0 commit 299746d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmsplugin_contact_plus/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def recaptcha_installed():
103103
class ExtraField(SortableMixin):
104104
"""
105105
"""
106-
form = models.ForeignKey(ContactPlus, verbose_name=_("Contact Form"), on_delete=models.CASCADE)
106+
form = models.ForeignKey(ContactPlus, verbose_name=_("Contact Form"), null=True, on_delete=models.SET_NULL)
107107
label = models.CharField(_('Label'), max_length=100)
108108
fieldType = models.CharField(max_length=100, choices=FIELD_TYPE)
109109
initial = models.CharField(

0 commit comments

Comments
 (0)