Skip to content

Commit

Permalink
Merge pull request #778 from ubyssey/preview-pages
Browse files Browse the repository at this point in the history
fix preview pages
  • Loading branch information
Rowansdabomb authored May 10, 2018
2 parents 03089e7 + 8fd815a commit 45728fa
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 45728fa

Please sign in to comment.