update dependency

This commit is contained in:
bkfox
2021-03-05 18:19:49 +01:00
parent 3f9978aec7
commit c08e93d91f
6 changed files with 15 additions and 6 deletions

View File

@ -118,6 +118,12 @@ class BasePage(models.Model):
def is_trash(self):
return self.status == self.STATUS_TRASH
@property
def display_title(self):
if self.is_published():
return self.title
return self.parent.display_title()
@cached_property
def headline(self):
if not self.content:

View File

@ -95,7 +95,7 @@ Usefull context:
{% block main %}
{% block content %}
{% if page and page.content %}
<section class="content">{{ page.content|safe }}</section>
<section class="page-content">{{ page.content|safe }}</section>
{% endif %}
{% endblock %}
{% endblock main %}

View File

@ -10,6 +10,7 @@
{% endif %}
{% endblock %}
{% block before_list %}{% endblock %}
{% block pages_list %}
{% if page and page.content %}<hr/>{% endif %}