work on it

This commit is contained in:
bkfox
2019-07-28 18:40:59 +02:00
parent 7c8814e164
commit fff4801ac7
15 changed files with 190 additions and 146 deletions

View File

@ -132,6 +132,10 @@ class Page(StatusModel):
objects = PageQueryset.as_manager()
@property
def is_published(self):
return self.status == self.STATUS.published
@property
def path(self):
return reverse(self.detail_url_name, kwargs={'slug': self.slug})