after-create
Can't grab foreign key during after_create callback because it doesn't exist yet!
I have some models all linked together in memory (parent:child:child:child) and saved at the same time by saving the top-most parent.This works fine.[详细]
2022-12-22 06:05 分类:问答counter_cache is stale in after_create hook
I rely on a counter cache value in an after_create hook of my model. However, my hook is called before the counter cach开发者_Python百科e gets updated, thus breaking a computation.[详细]
2022-12-20 13:19 分类:问答