Opened 9 years ago
Closed 9 years ago
#26326 closed Bug (worksforme)
Admin related object pop-ups not working
Reported by: | maceo | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admin | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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' %}"/>
Attachments (1)
Change History (5)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Change user > Permissions > Groups
The style of the link to add a new group is also affected by the fix. I will add a screenshot.
The version is 1.9.3 installed yesterday via pip. The project has nothing on it except what was created by startproject
by , 9 years ago
Attachment: | Screenshot-Change user | Django site admin - Mozilla Firefox.png added |
---|
comment:3 by , 9 years ago
Have you tried a different browser? I cannot reproduce a problem in Firefox or Chrome.
comment:4 by , 9 years ago
Easy pickings: | unset |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
On which page are you opening the popup?
Are you running Django 1.9.3? A similar report was fixed in Django 1.9.1 (#25903).