#26326: Admin related object pop-ups not working
-------------------------------+--------------------
     Reporter:  maceo          |      Owner:  nobody
         Type:  Bug            |     Status:  new
    Component:  contrib.admin  |    Version:  1.9
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  1              |      UI/UX:  0
-------------------------------+--------------------
 Instead of opening in a pop-up the related object change form opens in a
 new window.  After some investigation, the modification below has fixed
 it.  One of you lovely Django peoples please verify/patch.  Thank you.

 {{{

 +++ b/contrib/admin/templates/admin/related_widget_wrapper.html
 @@ -10,7 +10,7 @@
          </a>
          {% endif %}
          {% if can_add_related %}
 -        <a class="related-widget-wrapper-link add-related" id="add_id_{{
 name }}"
 +        <a class="related-widget-wrapper-link add-another" id="add_id_{{
 name }}"
              href="{{ add_related_url }}?{{ url_params }}"
              title="{% blocktrans %}Add another {{ model }}{%
 endblocktrans %}">
              <img src="{% static 'admin/img/icon-addlink.svg' %}" alt="{%
 trans 'Add' %}"/>
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26326>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.e143499dcb66fd478f9af0032089a101%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to