Opened 14 years ago
Last modified 3 years ago
#16260 new New feature
Ability to change dismissRelatedLookupPopup on custom callback function
Description ¶
The best solution for some cases for customizing admin is put some links with showRelatedObjectLookupPopup javascript function on admin changelist, but after user choose the object, custom javascript function must be called instead of dismissRelatedLookupPopup javascript function.
Execution of dismissRelatedLookupPopup is hard coded in python code now. The easiest way to implement use case described higher is adding new GET argument "_callback" to changelist view.
According to the ticket's flags, the next step(s) to move this issue forward are:
- To improve the patch as described in the pull request review comments or on this ticket, then uncheck "Patch needs improvement".
If creating a new pull request, include a link to the pull request in the ticket comment when making that update. The usual format is:
[https://github.com/django/django/pull/#### PR]
.
Change History (9)
by , 14 years ago
Attachment: | related_lookup_popup.diff added |
---|
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Cc: | added |
---|---|
Keywords: | javascript added |
Triage Stage: | Unreviewed → Accepted |
Type: | Cleanup/optimization → New feature |
I would love to see this implemented! I'm not sure if _callback is the best name for the GET parameter, though.
comment:3 by , 14 years ago
Version: | 1.3 → SVN |
---|
comment:4 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 13 years ago
Attachment: | 16260-admin-popup-callback.diff added |
---|
comment:5 by , 13 years ago
I'm not entirely sold on the implementation but I do want to include this new feature. So I'll chew on it a bit more. In the meantime I've the patch to apply to current code.
comment:6 by , 11 years ago
Easy pickings: | unset |
---|---|
Patch needs improvement: | set |
comment:7 by , 3 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
See disscussion in Google Group http://groups.google.com/group/django-developers/browse_thread/thread/e9275e47693edc3f?hl=en#