From 3be7b7cd5e843da7f803d3e9ddd54a619c0231de Mon Sep 17 00:00:00 2001 From: j Date: Fri, 12 Nov 2021 17:17:59 +0000 Subject: [PATCH] fix url --- app/event/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/event/models.py b/app/event/models.py index 9c75961..5fe1123 100644 --- a/app/event/models.py +++ b/app/event/models.py @@ -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