Re:Django Model Lifecycle Hooks – Inspired by Rails Callbacks
by rsinger87 on Thursday April 12, 2018 @11:12PM
(#16826883)
Cool :)
Yeah, my team hasn't found many cases where signals are preferable to overridding save(). The implementation of @hook is really just a wrapper around that approach - with the aim of a friendly, declarative interface.
Yeah, my team hasn't found many cases where signals are preferable to overridding save(). The implementation of @hook is really just a wrapper around that approach - with the aim of a friendly, declarative interface.