Skip to content

Commit

Permalink
Allow empty project list on organization team form (#10947)
Browse files Browse the repository at this point in the history
This allows the field/widget in the form to be empty on submit.

- Fixes #10934
  • Loading branch information
agjohnson authored Dec 15, 2023
1 parent b2cdd97 commit 3ca367e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/organizations/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def __init__(self, *args, **kwargs):
self.fields["projects"] = forms.ModelMultipleChoiceField(
queryset=self.organization.projects,
widget=forms.CheckboxSelectMultiple,
required=False,
)


Expand Down

0 comments on commit 3ca367e

Please sign in to comment.