From 0848b14d10e2958c8c89b7010b3540af0797100f Mon Sep 17 00:00:00 2001 From: Joseph Muller Date: Mon, 8 Jan 2024 15:59:18 +0000 Subject: [PATCH] Remove required from some form BleachFields #3867 --- src/cms/forms.py | 2 +- src/core/forms/forms.py | 2 +- src/press/forms.py | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cms/forms.py b/src/cms/forms.py index c4c450eaa2..e21a434560 100755 --- a/src/cms/forms.py +++ b/src/cms/forms.py @@ -78,7 +78,7 @@ def clean_top_level_nav(self): class SubmissionItemForm(JanewayTranslationModelForm): - text = BleachField() + text = BleachField(required=False) class Meta: model = models.SubmissionItem diff --git a/src/core/forms/forms.py b/src/core/forms/forms.py index e6738942b2..109c1eb000 100755 --- a/src/core/forms/forms.py +++ b/src/core/forms/forms.py @@ -90,7 +90,7 @@ class Meta: class EditorialGroupForm(JanewayTranslationModelForm): - description = BleachField() + description = BleachField(required=False) def __init__(self, *args, **kwargs): next_sequence = kwargs.pop('next_sequence', None) diff --git a/src/press/forms.py b/src/press/forms.py index 776f7eeae5..ba8a9294d5 100755 --- a/src/press/forms.py +++ b/src/press/forms.py @@ -79,7 +79,8 @@ def save(self, commit=True): class PressJournalDescription(forms.Form): - description = BleachField() + + description = BleachField(required=False) def __init__(self, *args, **kwargs): self.journal = kwargs.pop('journal')