This commit is contained in:
j 2021-11-12 17:17:59 +00:00
parent 1a1606b003
commit 3be7b7cd5e

View file

@ -1,4 +1,6 @@
from django.db import models
from django.conf import settings
import ox
class Event(models.Model):
@ -24,4 +26,4 @@ class Event(models.Model):
return '%s (%s)' % (ox.strip_tags(self.title), self.slug)
def get_absolute_url(self):
return '/#' + self.slug
return '/' + settings.URL_PREFIX + '#' + self.slug