X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8044f0dceec591bcc77579cf7cf4af843cf5c5fa..58554ad41d789d21c7477c01fd8c27ff1f590445:/src/messaging/models.py?ds=sidebyside diff --git a/src/messaging/models.py b/src/messaging/models.py index fccd64776..d598fc852 100644 --- a/src/messaging/models.py +++ b/src/messaging/models.py @@ -163,6 +163,9 @@ class Contact(models.Model): self.expires_at = expires_at self.save() + def wl_optout_url(self): + return 'https://wolnelektury.pl' + self.get_optout_url() + class EmailSent(models.Model): template = models.ForeignKey(EmailTemplate, models.CASCADE)