fix url
This commit is contained in:
parent
1a1606b003
commit
3be7b7cd5e
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
import ox
|
import ox
|
||||||
|
|
||||||
class Event(models.Model):
|
class Event(models.Model):
|
||||||
|
@ -24,4 +26,4 @@ class Event(models.Model):
|
||||||
return '%s (%s)' % (ox.strip_tags(self.title), self.slug)
|
return '%s (%s)' % (ox.strip_tags(self.title), self.slug)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return '/#' + self.slug
|
return '/' + settings.URL_PREFIX + '#' + self.slug
|
||||||
|
|
Loading…
Reference in a new issue