Commit d6cd4e81 authored by alexAubin's avatar alexAubin
Browse files

Fix could_be_deleted definition?

parent 9b1c96f0
Pipeline #67 failed with stage
in 2 minutes and 34 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 <= utils.one_year_ago()) and not self.get_active_subscriptions(date=utils.one_year_ago())
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