Replies: 1 comment 4 replies
-
|
@Clement-O for running the our customized signal then you need to connect it as: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I was looking to auto update a field (
updated_at) in my document onpre_saveandpre_updatesignals.While it works flawlessly with save() & create(), it does not with update().
Looking at the code, save() & create() trigger their
pre_savevery early and useselfdirectly so I can easily modify the instance in the signal before being 'updated' in the collection by the initial save or create function. For update() I need to modify thekwargsand not the instance, which looks currently impossible..My code as example:
Beta Was this translation helpful? Give feedback.
All reactions