Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1489 closed defect (fixed)

[magic-removal][patch] Deleting objects with one-to-one relations broken in admin

Reported by: Christopher Lenz <cmlenz@…> Owned by: Adrian Holovaty
Component: contrib.admin Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Due to it trying obj.get_${accessor-name} instead of just obj.${accessor_name}

Attachments (2)

django_1489.diff (575 bytes ) - added by Christopher Lenz <cmlenz@…> 19 years ago.
Fix deletion of objects with one-to-one relations
django_1489.2.diff (573 bytes ) - added by Christopher Lenz <cmlenz@…> 19 years ago.
Corrected patch

Download all attachments as: .zip

Change History (5)

by Christopher Lenz <cmlenz@…>, 19 years ago

Attachment: django_1489.diff added

Fix deletion of objects with one-to-one relations

comment:1 by anonymous, 19 years ago

Summary: [patch] Deleting objects with one-to-one relations broken in admin[magic-removal][patch] Deleting objects with one-to-one relations broken in admin

by Christopher Lenz <cmlenz@…>, 19 years ago

Attachment: django_1489.2.diff added

Corrected patch

comment:2 by Christopher Lenz <cmlenz@…>, 19 years ago

There was a stupid mistake in the first patch (trying to call the one-to-one accessor), which is now fixed.

comment:3 by Jacob, 19 years ago

Resolution: fixed
Status: newclosed

(In [2538]) magic-removal: fixed #1489 - objects with 1-to-1 relations may be deleted in the admin (thanks, Christopher Lenz)

Note: See TracTickets for help on using tickets.
Back to Top