From a36946529baa8d5c30ca937d9d0655dc88247194 Mon Sep 17 00:00:00 2001 From: Sli Date: Sun, 22 Dec 2024 12:04:51 +0100 Subject: [PATCH] Fix error when submitting group form without any group checked --- core/views/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/views/forms.py b/core/views/forms.py index 8a998ab0..60627c51 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -293,6 +293,7 @@ class UserGroupsForm(forms.ModelForm): queryset=RealGroup.objects.all(), widget=CheckboxSelectMultiple, label=_("Groups"), + required=False, ) class Meta: