Invoke method after create_update.(create|update|delete)_object methods
|Reported by:||das||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Sometimes it's useful to be able to invoke a method after the (create|update|delete)_object method saved or deleted your object. For example, to create a log message.
The attached patch adds a post_save_action/post_delete_action parameter to create_object, update_object and delete_object, which take a method object. After saving or deleting the object, the method is invoked before redirecting. Changes to documentation are included.
Change History (4)
comment:1 Changed 5 years ago by das
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset