Commit 0c64f5e8 authored by alexAubin's avatar alexAubin
Browse files

Fix could_be_deleted definition?

parent 9b1c96f0
Pipeline #70 passed with stage
in 2 minutes and 49 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 <= and not (self.get_active_subscriptions() or 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