1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
korenstin
8dc524df67 Merge branch 'bug_31_july' into 'main'
bug du jour 31 juillet (bissextile)

See merge request bde/nk20!254
2024-07-31 13:06:55 +02:00
korenstin
32e6a444d9 bug du jour 31 juillet (bissextile) 2024-07-31 12:26:41 +02:00

View File

@ -295,7 +295,8 @@ class Club(models.Model):
today = datetime.date.today()
while (today - self.membership_start).days >= 365:
while today >= datetime.date(self.membership_start.year + 1,
self.membership_start.month, self.membership_start.day):
if self.membership_start:
self.membership_start = datetime.date(self.membership_start.year + 1,
self.membership_start.month, self.membership_start.day)