diff --git a/apps/member/models.py b/apps/member/models.py index 4f78ecd3..3dd37351 100644 --- a/apps/member/models.py +++ b/apps/member/models.py @@ -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)