mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-14 22:07:31 +02:00
Suppression du choix GC WEI dans les roles
This commit is contained in:
parent
40ac1daece
commit
63f6528adc
@ -83,7 +83,7 @@ class WEIChooseBusForm(forms.Form):
|
||||
)
|
||||
|
||||
roles = forms.ModelMultipleChoiceField(
|
||||
queryset=WEIRole.objects.filter(~Q(name="1A")),
|
||||
queryset=WEIRole.objects.filter(~Q(name="1A") & ~Q(name="GC WEI")),
|
||||
label=_("WEI Roles"),
|
||||
help_text=_("Select the roles that you are interested in."),
|
||||
initial=WEIRole.objects.filter(name="Adhérent⋅e WEI").all(),
|
||||
@ -93,7 +93,7 @@ class WEIChooseBusForm(forms.Form):
|
||||
|
||||
class WEIMembershipForm(forms.ModelForm):
|
||||
roles = forms.ModelMultipleChoiceField(
|
||||
queryset=WEIRole.objects,
|
||||
queryset=WEIRole.objects.filter(~Q(name="GC WEI")),
|
||||
label=_("WEI Roles"),
|
||||
widget=CheckboxSelectMultiple(),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user