mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +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
65bf6d398a
commit
5a011bc0fd
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