Ticket #242 (closed defect: fixed)

Opened 5 months ago

Last modified 5 months ago

Deleting a POTD from the admin doesn't invoke Photo.delete

Reported by: brian Owned by: brian
Priority: major Milestone: Post Rollout
Component: Photo of the Day Version: Beta
Keywords: Cc:

Description

When you delete items from an admin changelist, it apparently calls delete() on the queryset, which does all the deleting in the database. It does not call delete() on the individual objects in the queryset.

Because of this, our customized logic in Photo.delete() is not getting called.

Change History

comment:1 Changed 5 months ago by brian

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

Fixed in r578. Moved the updating of the Sequence object into a signals module. Listen for post_save and post_delete.

Note: See TracTickets for help on using tickets.