From aa8088f9b2b6b2c89e2688b103b5be4e2013d9be Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Fri, 7 Jul 2017 05:04:36 +0200 Subject: [PATCH] Fix bug sur suppression de droit --- users/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/forms.py b/users/forms.py index b9401846..fafd1d19 100644 --- a/users/forms.py +++ b/users/forms.py @@ -258,10 +258,10 @@ class NewListRightForm(ListRightForm): self.fields['gid'].label = 'Gid, attention, cet attribut ne doit pas être modifié après création' class DelListRightForm(ModelForm): - listrights = forms.ModelMultipleChoiceField(queryset=ListRight.objects.all().select_related('user'), label="Droits actuels", widget=forms.CheckboxSelectMultiple) + listrights = forms.ModelMultipleChoiceField(queryset=ListRight.objects.all(), label="Droits actuels", widget=forms.CheckboxSelectMultiple) class Meta: - exclude = ['listright','gid'] + exclude = ['listright','gid','details'] model = ListRight class DelSchoolForm(ModelForm):