|
|
@ -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}" |
|
|
|