Browse Source

Fix available articles

typo_and_trad_regeration
Hugo LEVY-FALK 7 years ago
committed by klafyvel
parent
commit
70a5996f5d
  1. 2
      cotisations/models.py

2
cotisations/models.py

@ -624,7 +624,7 @@ class Article(RevMixin, AclMixin, models.Model):
objects_pool = cls.objects.filter(
Q(type_user='All') | Q(type_user='Adherent')
)
if not target_user.is_adherent():
if target_user is not None and not target_user.is_adherent():
objects_pool = objects_pool.filter(
Q(type_cotisation='All') | Q(type_cotisation='Adhesion')
)

Loading…
Cancel
Save