8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +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 6e832976b5
commit 5150eb05df

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