0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

page.locale.get_display_name should be parent.locale.get_display_name

As per b373cacd6a (r64281585)
This commit is contained in:
Matt Westcott 2022-01-21 10:29:51 +00:00
parent 20a7d1ef3a
commit bf9f1a5e00

View File

@ -7,6 +7,6 @@ Expects a variable 'page', the page instance.
{% with page.get_parent as parent %}
{% if parent %}
<a href="{% url 'wagtailadmin_choose_page_child' parent.id %}" class="navigate-parent">{{ parent.get_admin_display_title }}</a>
{% if show_locale_labels %}<span class="status-tag status-tag--label">{{ page.locale.get_display_name }}</span>{% endif %}
{% if show_locale_labels %}<span class="status-tag status-tag--label">{{ parent.locale.get_display_name }}</span>{% endif %}
{% endif %}
{% endwith %}