Compare:
to
https://github.com/django/django/blob/master/django/contrib/admin/options.py#L1064-L1067
Seems like an easy change and I would like to submit a patch in case there
is a particular reason (security?) this is not customizable.
popup_response.html was originally added by this ticket:
https://code.djangoproject.com/ticket/19773
--
Ticket URL: <https://code.djangoproject.com/ticket/27313>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* type: Bug => Cleanup/optimization
* needs_tests: => 0
* needs_docs: => 0
Comment:
Probably the use case was never considered. Could you give one?
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:1>
Comment (by Ustun Ozgur):
In my particular case, I'm using django-selectable library. It provides
autocomplete, but lacks it for M2M fields. So, I need some custom JS which
basically needs some more data for a particular model so that I can inject
it into the opener page.
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:2>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:3>
* status: new => assigned
* owner: nobody => Michael Scott
Comment:
I'll pick this up and see if I can make the suggested change.
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:4>
* has_patch: 0 => 1
Comment:
Sorry its taken a while but I've finally created a PR to make the proposed
changes. Please let me know if there are any issues with the changes or
potential improvements.
https://github.com/django/django/pull/7548
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1e629928e9257da5ec37a65784c0f68889d3edf4" 1e629928]:
{{{
#!CommitTicketReference repository=""
revision="1e629928e9257da5ec37a65784c0f68889d3edf4"
Fixed #27313 -- Allowed overriding admin popup response template.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27313#comment:6>