8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 22:52:26 +00:00

Fix bug sur suppression de droit

This commit is contained in:
Gabriel Detraz 2017-07-07 05:04:36 +02:00 committed by root
parent 0b43d82dda
commit aa8088f9b2

View file

@ -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):