#19773: Moving the response after a popup submission to a template so that it
can
be overwritten.
--------------------------------------+--------------------
Reporter: jimmylam@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Currently, after a popup submission (e.g. adding another User thur the "+"
link in django admin), the response is
'<!DOCTYPE html><html><head><title></title></head><body>'
'<script type="text/javascript">opener.dismissAddAnotherPopup(window,
"%s", "%s");</script></body></html>' % \
# escape() calls force_unicode.
(escape(pk_value), escapejs(obj)))
Can this be changed so that it is loaded from a template file? And so,
the template file can then be overwritten.
Since most browsers are having more strict cross-site pop-up windows
security checking and my site are being loaded from different subdomains.
In order to make them work together, i have to add the javascript
'document.domain = 'mydomain.com' in the templates, including the admin
templates.
However, the above response can't be modified or overwritten because it's
part of the code within the response_add method of ModelAdmin.
--
Ticket URL: <https://code.djangoproject.com/ticket/19773>
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].
For more options, visit https://groups.google.com/groups/opt_out.