From c9f22b43d364348eb44e887b9ae23e45856bfec6 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 1 Feb 2021 20:51:06 +0100 Subject: [PATCH] Don't display articles for clubs --- portail/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/portail/forms.py b/portail/forms.py index 18418e91..de05de11 100644 --- a/portail/forms.py +++ b/portail/forms.py @@ -87,6 +87,7 @@ class MembershipForm(forms.Form): Q(need_membership=False) | Q(duration_membership__gt=0) | Q(duration_days_membership__gt=0), + ~Q(type_user="Club"), available_for_everyone=True), label=_("Article"), empty_label=_("Select an article"),