Added unsubscribe action
This commit is contained in:
parent
140cc6cfa5
commit
fcfebcd952
|
|
@ -115,6 +115,7 @@ class Subscriber(ProjectBaseMixin):
|
||||||
def unsubscribe(self, query: dict):
|
def unsubscribe(self, query: dict):
|
||||||
"""Unsubscribe user."""
|
"""Unsubscribe user."""
|
||||||
self.subscribe_set.update(unsubscribe_date=now())
|
self.subscribe_set.update(unsubscribe_date=now())
|
||||||
|
self.subscription_types = []
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def send_to(self):
|
def send_to(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user