|
|
|
@ -1,3 +1,4 @@
@@ -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):
@@ -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}" |
|
|
|
|