mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-27 09:23:47 +00:00
Si une facture est dévalidée par le trésorier, la connexion est immédiatement coupée
This commit is contained in:
parent
427c6909c1
commit
0bbc43066e
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def form(ctx, template, request):
|
|||
|
||||
def end_adhesion(user):
|
||||
""" Renvoie la date de fin d'adhésion d'un user, False sinon """
|
||||
date_max = Cotisation.objects.all().filter(facture=Facture.objects.all().filter(user=user)).aggregate(Max('date_end'))['date_end__max']
|
||||
date_max = Cotisation.objects.all().filter(facture=Facture.objects.all().filter(user=user).exclude(valid=False)).aggregate(Max('date_end'))['date_end__max']
|
||||
return date_max
|
||||
|
||||
def is_adherent(user):
|
||||
|
|
Loading…
Reference in a new issue