Commit a2225e1b authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Fix today() as default argument (see 3da3f994)

parent 13e49139
......@@ -112,10 +112,12 @@ class Member(CoinLdapSyncMixin, AbstractUser):
return self.membership_fees.order_by('-end_date')[0].end_date
end_date_of_membership.short_description = "Date de fin d'adhésion"
def is_paid_up(self,
def is_paid_up(self, date=None):
True si le membre est à jour de cotisation à la date passée. False sinon
if date is None:
date =
if self.end_date_of_membership() \
and self.end_date_of_membership() >= date:
return True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment