Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#2207 closed enhancement (wontfix)

[patch] post_add_manipulator_save and post_change_manipulator_save signals

Reported by: Rajesh Dhawan <rajesh.dhawan@…> Owned by: Adrian Holovaty
Component: Core (Other) Version: dev
Severity: normal Keywords: dispatcher signal
Cc: rajesh.dhawan@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This patch adds two new signals: post_add_manipulator_save and post_change_manipulator_save. They are called from the django.db.models.manipulators.AutomaticManipulator save method, after the manipulator fully saves or changes a model and its related objects and files.

Unlike the regular post_save signal, these signals are called after all the related models and FileField/ImageField objects of the models have been fully saved to the database and filesystem. Therefore, these signals can be used to, for example, create thumbnails of ImageFields.

Attachments (1)

add_change_manipulators_patch.diff (1.2 KB ) - added by Rajesh Dhawan <rajesh.dhawan@…> 19 years ago.
Add/change manipulator patch

Download all attachments as: .zip

Change History (5)

by Rajesh Dhawan <rajesh.dhawan@…>, 19 years ago

Add/change manipulator patch

comment:1 by Rajesh Dhawan <rajesh.dhawan@…>, 19 years ago

priority: normallow
Version: magic-removalSVN

comment:2 by Rajesh Dhawan <rajesh.dhawan@…>, 19 years ago

Cc: rajesh.dhawan@… added

comment:3 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

Because the automatic manipulators (in their current form) are going away before 1.0, there's no point in adding this to Django.

comment:4 by rajesh, 19 years ago

Adrian, that's good news! Is there anywhere I can pick up discussions on these upcoming changes as I am very interested in this area of Django for a couple of my projects? Tried searching on the users and dev group archives before deciding to bother you with this. Thanks.

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