Opened 19 years ago

Closed 17 years ago

#1069 closed defect (duplicate)

Fire a signal after save of related objects

Reported by: wojtek@… Owned by: nobody
Component: Core (Other) Version:
Severity: normal Keywords: feature_request
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: yes Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Right now _post_save is called directly after saving the given object. Often it is needed that a method is called after the manipulator finishes saving the object and all related objects, for that I propose the attached patch adding a _post_total_save hook called from the manipulator.

Attachments (1)

diff.txt (609 bytes ) - added by anonymous 19 years ago.

Download all attachments as: .zip

Change History (7)

by anonymous, 19 years ago

Attachment: diff.txt added

comment:1 by Michael Radziej <mir@…>, 18 years ago

Has patch: set
Needs documentation: set
Needs tests: set
Patch needs improvement: set
Triage Stage: UnreviewedDesign decision needed

Please provide a patch with full pathnames, so that trac is able to display it.

comment:2 by Gary Wilson <gary.wilson@…>, 18 years ago

New functionality will probably not be added to Manipulators since they are getting replaced by newforms changes. The patch should be updated for newforms.

comment:3 by Malcolm Tredinnick, 18 years ago

Component: Admin interfaceCore framework
Triage Stage: Design decision neededAccepted

This should dispatch a signal, not call a function. The feature is worth having -- it's asked for a lot.

comment:4 by Philippe Raoult, 17 years ago

Keywords: feature_request added

comment:5 by James Bennett, 17 years ago

Summary: Hook to call when the manipulator finishes saving a given object *and* related objects.Fire a signal after save of related objects

(changing summary to reflect what needs to be done here)

comment:6 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

Closing in favor of #5390, which has a patch.

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