Skip to content

Commit

Permalink
fix preview pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rowansdabomb committed May 10, 2018
1 parent 03089e7 commit 8fd815a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dispatch/modules/content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,12 @@ class Page(Publishable):
def get_author_string(self):
return None

def get_absolute_url(self):
"""
Returns page URL.
"""
return "%s%s/" % (settings.BASE_URL, self.slug)

class Video(Model):
title = CharField(max_length=255)
url = CharField(max_length=500)
Expand Down

0 comments on commit 8fd815a

Please sign in to comment.