Commit 5150eb05 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root
Browse files

Fix bug sur suppression de droit

parent 6e832976
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment