Commit 2743dcf6 authored by Hamza Dely's avatar Hamza Dely
Browse files

[activites/views] Corrige un appel à .filter()

parent 33ae59f5
......@@ -223,7 +223,7 @@ class ActiviteInvitationView(NoteMixin, PermissionRequiredMixin, LoginRequiredMi
form = super().get_form(form_class=form_class)
user = self.request.user
if user.has_perm("activites.invite_inviter", Acl.TOTAL):
form.fields['invite_par'].queryset = Adherent.objects.all(supprime=False)
form.fields['invite_par'].queryset = Adherent.objects.filter(supprime=False).order_by('id')
else:
form.fields['invite_par'].queryset = Adherent.objects.filter(pk=user.id)
......
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