mirror of
https://github.com/ae-utbm/sith.git
synced 2026-12-05 07:12:48 +00:00
add tests
This commit is contained in:
1 parent
d7fa0b5ed6
commit
2ac2bb48c2
2 files changed
+57
-1
No files matched your search
+1
-1
@@ -388,7 +388,7 @@ class UserGroupsForm(forms.ModelForm):
|
||||
self.instance.groups.set(
|
||||
[
|
||||
*self.cleaned_data["groups"],
|
||||
*self.instance.groups.filter(is_manually_manageable=False),
|
||||
*self.instance.groups.difference(self.fields["groups"].queryset),
|
||||
]
|
||||
)
|
||||
return self.instance
|
||||
|
||||
Reference in new issue
Block a user