SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 02899417 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Merge branch 'master' into dev_JSC_20220307_nominations

parents e575a373 96fd1500
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment