Browse Source

add scheme to the link text

main
xenua 2 years ago
parent
commit
b565762d04
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 3
      leftists/models.py

3
leftists/models.py

@ -1,3 +1,4 @@
from django.conf import settings
from django.db import models from django.db import models
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from django_scopes import ScopedManager from django_scopes import ScopedManager
@ -21,4 +22,4 @@ class ShortLink(RandomSlugPKMixin, models.Model):
self.save() self.save()
def link(self): def link(self):
return f"{self.domain.fqdn}/{self.location}" return f"https://{self.domain.fqdn}/{self.location}"

Loading…
Cancel
Save