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:
Matt Westcott 2015-02-27 16:14:28 +00:00
parent eb7dd44055
commit 6afc15c395

View file

@ -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 %}