fix json
This commit is contained in:
parent
d02d255808
commit
6f997abde2
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ class Event(models.Model):
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return '/' + settings.URL_PREFIX + '#' + self.slug
|
return '/' + settings.URL_PREFIX + '#' + self.slug
|
||||||
|
|
||||||
|
@property
|
||||||
def display_date(self):
|
def display_date(self):
|
||||||
date = self.date.split(' ')
|
date = self.date.split(' ')
|
||||||
start = date[0].split('-')
|
start = date[0].split('-')
|
||||||
|
|
Loading…
Reference in a new issue