From 3ca367e447d1c453bc74a7f370af3492f8c30b5c Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 15 Dec 2023 11:27:10 -0800 Subject: [PATCH] Allow empty project list on organization team form (#10947) This allows the field/widget in the form to be empty on submit. - Fixes #10934 --- readthedocs/organizations/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/readthedocs/organizations/forms.py b/readthedocs/organizations/forms.py index 0120c05ae5a..85fc7ae3818 100644 --- a/readthedocs/organizations/forms.py +++ b/readthedocs/organizations/forms.py @@ -208,6 +208,7 @@ def __init__(self, *args, **kwargs): self.fields["projects"] = forms.ModelMultipleChoiceField( queryset=self.organization.projects, widget=forms.CheckboxSelectMultiple, + required=False, )