X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7010b5cb6b4e4380d9e23add9c7c98431b6e3f95..700710d1aa59af7316ba9694711bfca051925677:/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)