Commit 6c8c05cc authored by alexAubin's avatar alexAubin
Browse files

Fix could_be_deleted definition?

parent 9b1c96f0
Pipeline #69 failed with stage
in 2 minutes and 46 seconds
......@@ -175,7 +175,9 @@ class Member(CoinLdapSyncMixin, AbstractUser):
def could_be_deleted(self):
return self.is_paid_up() and not self.get_active_subscriptions(date=utils.one_year_ago())
end_date = self.end_date_of_membership()
return (end_date is None or end_date <= datetime.date.today()) and not self.get_recent_inactive_subscriptions()
def set_password(self, new_password, *args, **kwargs):
"""
......
Markdown is supported
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