{% extends "wagtailadmin/widgets/chooser.html" %}

{% block chooser_class %}news-chooser{% endblock %}

{% block chosen_state_view %}
    <span class='title'>{{item}}</span>
{% endblock %}

{% block edit_chosen_item_url %}{% url "wagtailnews_edit" pk=item.newsindex_id newsitem_pk=item.pk %}{% endblock %}

{% block icon %}icon icon-grip{% endblock %}

{% extends "wagtailadmin/widgets/chooser.html" %}

{% block chooser_class %}news-chooser{% endblock %}

{% block chosen_state_view %}
    <span class='title'>{{item}}</span>
{% endblock %}

{% block edit_chosen_item_url %}{% if item %}{% url "wagtailnews_edit" pk=item.newsindex_id newsitem_pk=item.pk %}{% endif %}{% endblock %}

{% block icon %}icon icon-grip{% endblock %}

Make chooser work when nothing is chosen
Make chooser work when nothing is chosen
