From 40fa8e11c15516f63c1249842be27d176aea6a7c Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Wed, 16 Mar 2022 09:36:35 +0100 Subject: [PATCH] Make description/content optional in form --- froide_govplan/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/froide_govplan/forms.py b/froide_govplan/forms.py index 7430a49..dc6e8a3 100644 --- a/froide_govplan/forms.py +++ b/froide_govplan/forms.py @@ -47,7 +47,7 @@ class BleachField(forms.CharField): class GovernmentPlanForm(forms.ModelForm): - description = BleachField(widget=TinyMCE(attrs={"cols": 80, "rows": 30})) + description = BleachField(required=False, widget=TinyMCE(attrs={"cols": 80, "rows": 30})) class Meta: model = GovernmentPlan @@ -55,7 +55,7 @@ class GovernmentPlanForm(forms.ModelForm): class GovernmentPlanUpdateForm(forms.ModelForm): - content = BleachField(widget=TinyMCE(attrs={"cols": 80, "rows": 30})) + content = BleachField(required=False, widget=TinyMCE(attrs={"cols": 80, "rows": 30})) class Meta: model = GovernmentPlanUpdate