mirror of https://gitlab.crans.org/bde/nk20
Fix membership tables for clubs without an ending membership date
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
8563a8d235
commit
d9b4e0a9a9
|
@ -258,7 +258,7 @@ class Club(models.Model):
|
|||
This function is called each time the club detail view is displayed.
|
||||
Update the year of the membership dates.
|
||||
"""
|
||||
if not self.membership_start:
|
||||
if not self.membership_start or not self.membership_end:
|
||||
return
|
||||
|
||||
today = datetime.date.today()
|
||||
|
|
Loading…
Reference in New Issue