diff --git a/leftists/models.py b/leftists/models.py index 19e7c0a..7a8a7a5 100644 --- a/leftists/models.py +++ b/leftists/models.py @@ -1,3 +1,4 @@ +from django.conf import settings from django.db import models from django.utils.translation import gettext_lazy as _ from django_scopes import ScopedManager @@ -21,4 +22,4 @@ class ShortLink(RandomSlugPKMixin, models.Model): self.save() def link(self): - return f"{self.domain.fqdn}/{self.location}" + return f"https://{self.domain.fqdn}/{self.location}"