Django

Code

Ticket #1069 (closed: duplicate)

Opened 3 years ago

Last modified 1 year ago

Fire a signal after save of related objects

Reported by: wojtek@brandlay.com Assigned to: nobody
Milestone: Component: Core framework
Version: Keywords: feature_request
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 1
Needs tests: 1 Patch needs improvement: 1

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

diff.txt (0.6 kB) - added by anonymous on 12/15/05 17:38:34.

Change History

12/15/05 17:38:34 changed by anonymous

  • attachment diff.txt added.

02/03/07 05:48:48 changed by Michael Radziej <mir@noris.de>

  • needs_better_patch set to 1.
  • has_patch set to 1.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests set to 1.
  • needs_docs set to 1.

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

03/05/07 09:33:17 changed by Gary Wilson <gary.wilson@gmail.com>

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

04/25/07 06:09:28 changed by mtredinnick

  • component changed from Admin interface to Core framework.
  • stage changed from Design decision needed to Accepted.

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

09/15/07 14:37:19 changed by PhiR

  • keywords set to feature_request.

09/16/07 06:50:17 changed by ubernostrum

  • summary changed from Hook to call when the manipulator finishes saving a given object *and* related objects. to Fire a signal after save of related objects.

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

09/16/07 08:24:42 changed by ubernostrum

  • status changed from new to closed.
  • resolution set to duplicate.

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


Add/Change #1069 (Fire a signal after save of related objects)




Change Properties
Action