mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-27 01:13:46 +00:00
Fix bug sur suppression de droit
This commit is contained in:
parent
0b43d82dda
commit
aa8088f9b2
1 changed files with 2 additions and 2 deletions
|
@ -258,10 +258,10 @@ class NewListRightForm(ListRightForm):
|
||||||
self.fields['gid'].label = 'Gid, attention, cet attribut ne doit pas être modifié après création'
|
self.fields['gid'].label = 'Gid, attention, cet attribut ne doit pas être modifié après création'
|
||||||
|
|
||||||
class DelListRightForm(ModelForm):
|
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:
|
class Meta:
|
||||||
exclude = ['listright','gid']
|
exclude = ['listright','gid','details']
|
||||||
model = ListRight
|
model = ListRight
|
||||||
|
|
||||||
class DelSchoolForm(ModelForm):
|
class DelSchoolForm(ModelForm):
|
||||||
|
|
Loading…
Reference in a new issue