mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-09 16:04:45 +00:00
fix wagtailsnippets_edit URL params on snippet_chooser.
Using target_content_type instead of target_content_type.model apparently meant that we were using the verbose name, causing it to fall over when that contained spaces
This commit is contained in:
parent
eb7dd44055
commit
6afc15c395
1 changed files with 1 additions and 1 deletions
|
|
@ -6,4 +6,4 @@
|
|||
<span class="title">{{ item }}</span>
|
||||
{% endblock %}
|
||||
|
||||
{% block edit_chosen_item_url %}{% if item %}{% url 'wagtailsnippets_edit' widget.target_content_type.app_label widget.target_content_type item.id %}{% endif %}{% endblock %}
|
||||
{% block edit_chosen_item_url %}{% if item %}{% url 'wagtailsnippets_edit' widget.target_content_type.app_label widget.target_content_type.model item.id %}{% endif %}{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue