Filter out snapshot content blocks from CMS Explore view
This commit is contained in:
parent
a299ac5bcd
commit
bbaa5882e0
|
|
@ -72,12 +72,12 @@
|
|||
<div style="margin-top:10px; padding-left: 30px">
|
||||
<ul>
|
||||
{% for c in page.get_children %}
|
||||
{% if not c.specific.user_created %}
|
||||
{% if not c.specific.user_created and not c.specific.contentblocksnapshot %}
|
||||
<li>
|
||||
{% if page_perms.can_edit %}
|
||||
<a href="{% url 'wagtailadmin_pages:edit' c.id %}"
|
||||
title="{% trans 'Edit this page' %}"> {{ c.get_admin_display_title }}
|
||||
</a>
|
||||
</a>
|
||||
{% else %}
|
||||
{{ c.get_admin_display_title }}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue