[Django] #28959: Canceling removing inline Foreign Key does not work

16 views
Skip to first unread message

Django

unread,
Dec 24, 2017, 10:08:19 PM12/24/17
to django-...@googlegroups.com
#28959: Canceling removing inline Foreign Key does not work
-----------------------------------------+------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
If you have a Foreign Key to a model that is nullable and has
`models.SET_NULL` as its `on_delete` handler a small red x appears inline.
Clicking on that brings up a popover warning. If you then click "No, take
me back" to cancel the action nothing happens because it's a popover and
the handler in `cancel.js` is doing `window.history.back()` which doesn't
work for a separate window.

This exists going back to at least 1.9

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

Django

unread,
Dec 26, 2017, 11:17:27 AM12/26/17
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------+------------------------------------

Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:1>

Django

unread,
Dec 28, 2017, 8:16:16 PM12/28/17
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------+------------------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Josh Schneier):

I'm happy to fix this but the popover code looked a bit complex. Since
it's isolated to cancel.js would checking for the `is_popover` hidden
field value (or in the URL) in the handler and then calling
`window.close()` if it's found be sufficient?

--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:2>

Django

unread,
Jan 11, 2018, 9:45:04 PM1/11/18
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------+------------------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Josh Schneier):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:3>

Django

unread,
Jan 12, 2018, 8:03:01 AM1/12/18
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------+------------------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Tim Graham):

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:4>

Django

unread,
Mar 6, 2018, 2:07:16 AM3/6/18
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------+------------------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Josh Schneier):

* needs_tests: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:5>

Django

unread,
Mar 15, 2018, 4:04:48 AM3/15/18
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------------+-------------------------------------

Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:6>

Django

unread,
Mar 15, 2018, 9:13:34 PM3/15/18
to django-...@googlegroups.com
#28959: Clicking "No, take me back" on the delete selected inline foreign key /
one-to-one field confirmation page does nothing
-------------------------------------+-------------------------------------
Reporter: Josh Schneier | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"b60e5fdbb778088b4b7e9e1522808f0c999e1dd9" b60e5fdb]:
{{{
#!CommitTicketReference repository=""
revision="b60e5fdbb778088b4b7e9e1522808f0c999e1dd9"
Fixed #28959 -- Fixed 'No, take me back' button on admin's inline popup.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/28959#comment:7>

Reply all
Reply to author
Forward
0 new messages