Opened 9 years ago

Closed 9 years ago

Last modified 9 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
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: UI/UX:

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@…> 9 years ago.
Fix deletion of objects with one-to-one relations
django_1489.2.diff (573 bytes) - added by Christopher Lenz <cmlenz@…> 9 years ago.
Corrected patch

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Christopher Lenz <cmlenz@…>

Fix deletion of objects with one-to-one relations

comment:1 Changed 9 years ago by anonymous

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

Changed 9 years ago by Christopher Lenz <cmlenz@…>

Corrected patch

comment:2 Changed 9 years ago by Christopher Lenz <cmlenz@…>

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

comment:3 Changed 9 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

(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