Added valid link to unsubscribe
This commit is contained in:
parent
36b9474e36
commit
a8dd7f9347
|
|
@ -148,10 +148,11 @@ class Subscriber(ProjectBaseMixin):
|
||||||
def link_to_unsubscribe(self):
|
def link_to_unsubscribe(self):
|
||||||
"""Link to unsubscribe."""
|
"""Link to unsubscribe."""
|
||||||
schema = settings.SCHEMA_URI
|
schema = settings.SCHEMA_URI
|
||||||
site_domain = settings.SITE_DOMAIN_URI
|
site_domain = settings.DOMAIN_URI
|
||||||
url = settings.SITE_REDIRECT_URL_UNSUBSCRIBE
|
url = settings.SITE_REDIRECT_URL_UNSUBSCRIBE
|
||||||
query = f'?code={self.update_code}'
|
query = f'?code={self.update_code}'
|
||||||
return f'{schema}://{site_domain}{url}{query}'
|
country_code = '%s.' % self.country_code if self.country_code else ''
|
||||||
|
return f'{schema}://{country_code}{site_domain}{url}{query}'
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def active_subscriptions(self):
|
def active_subscriptions(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user