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
-
Hi!
I was looking to auto update a field (
updated_at
) in my document onpre_save
andpre_update
signals.While it works flawlessly with save() & create(), it does not with update().
Looking at the code, save() & create() trigger their
pre_save
very early and useself
directly 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 thekwargs
and not the instance, which looks currently impossible..My code as example:
Beta Was this translation helpful? Give feedback.
All reactions