mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 03:13:12 +00:00
Merge branch 'Filter_Articles_non_members' into 'dev'
Filter articles non members See merge request federez/re2o!348
This commit is contained in:
commit
b710e2a56a
2 changed files with 10 additions and 3 deletions
|
@ -624,6 +624,10 @@ 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():
|
||||
objects_pool = objects_pool.filter(
|
||||
Q(type_cotisation='All') | Q(type_cotisation='Adhesion')
|
||||
)
|
||||
if user.has_perm('cotisations.buy_every_article'):
|
||||
return objects_pool
|
||||
return objects_pool.filter(available_for_everyone=True)
|
||||
|
@ -874,4 +878,3 @@ def cotisation_post_delete(**_kwargs):
|
|||
"""
|
||||
regen('mac_ip_list')
|
||||
regen('mailing')
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<p>Bonjour {{nom}} !</p>
|
||||
|
||||
<p>Vous êtes maintenant adhérent de {{asso_name}} ! Nous sommes ravis de vous accueillir dans l'association.</p>
|
||||
<p>Il vous suffit maintenant de payer l'adhésion pour devenir adhérent de {{asso_name}} et bénéficier des services. Pour avoir accès à Internet, il vous faudra payer la connexion.</p>
|
||||
|
||||
<p>Pour ce faire, rien de plus simple. Une fois que vous aurez défini votre mot de passe, il vous suffira d'accéder à votre profil et de cliquer sur 'Payer la connexion'</p>
|
||||
|
||||
<p>Votre pseudo est : {{pseudo}}</p>
|
||||
|
||||
|
@ -13,7 +15,9 @@ L'équipe de {{asso_name}}.</p>
|
|||
|
||||
<p>---</p>
|
||||
|
||||
<p>Welcome to the {{asso_name}} !</p>
|
||||
<p>You just need to pay membership to become a full member of {{asso_name}} and benefit from the services. To have Internet access, you will need to pay the connexion. </p>
|
||||
|
||||
<p>Nothing could be simpler. Once your password is defined, you just need to visit your profile and click on 'Pay for a connexion'.</p>
|
||||
|
||||
<p>Your username is : {{pseudo}}<p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue