Code

Opened 8 years ago

Closed 8 years ago

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

Download all attachments as: .zip

Change History (5)

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

Fix deletion of objects with one-to-one relations

comment:1 Changed 8 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 8 years ago by Christopher Lenz <cmlenz@…>

Corrected patch

comment:2 Changed 8 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 8 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)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.