diff --git a/scipost_django/organizations/forms.py b/scipost_django/organizations/forms.py index 06403dd691a946d45f00024e7c485256e791577e..a09fdc7056ffb61fdd01ac4e44307ed1a3df216a 100644 --- a/scipost_django/organizations/forms.py +++ b/scipost_django/organizations/forms.py @@ -53,6 +53,13 @@ class OrganizationForm(forms.ModelForm): model = Organization fields = "__all__" + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + # Bypass JSONField not validating empty dict default + self.fields["cf_associated_publication_ids"].required = False + self.fields["cf_balance_info"].required = False + self.fields["cf_expenditure_for_publication"].required = False + class OrganizationEventForm(forms.ModelForm): class Meta: