X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8044f0dceec591bcc77579cf7cf4af843cf5c5fa..d66f9960d12d739c44a89d1d4e013f52783097e7:/src/messaging/models.py 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)