You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that only the AFTER_* hooks of django-lifecycle are implemented.
Wouldn't it be useful to also support the BEFORE_* hooks?
E.g. I have an attachment file model. If an object get's deleted I'd like to use a BEFORE_DELETE hook to also delete the related file in the filesystem. With OperationType.DELETE this is not possible as the object is removed and I can't access it's fields in the hook anymore.
The text was updated successfully, but these errors were encountered:
Hello!
I noticed that only the AFTER_* hooks of django-lifecycle are implemented.
Wouldn't it be useful to also support the BEFORE_* hooks?
E.g. I have an attachment file model. If an object get's deleted I'd like to use a BEFORE_DELETE hook to also delete the related file in the filesystem. With OperationType.DELETE this is not possible as the object is removed and I can't access it's fields in the hook anymore.
The text was updated successfully, but these errors were encountered: