Added unsubscribe action

This commit is contained in:
dormantman 2020-01-09 19:46:12 +03:00
parent 140cc6cfa5
commit fcfebcd952

View File

@ -115,6 +115,7 @@ class Subscriber(ProjectBaseMixin):
def unsubscribe(self, query: dict):
"""Unsubscribe user."""
self.subscribe_set.update(unsubscribe_date=now())
self.subscription_types = []
@property
def send_to(self):