what's the order of post_save receiver in django?

烂漫一生 提交于 2019-11-28 10:54:43

问题


You can bind multiple post_save(pre_save, etc) receivers to a class.

Is there a way to specify the ordering of receipt of signals?


回答1:


Ordering signal in django would be a good feature but unfortunately Django does not support this as mentioned in this ticket although you can have a close look at Django Signals and the Observer Design Pattern to have better understanding of its pattern & design.



来源:https://stackoverflow.com/questions/20990146/whats-the-order-of-post-save-receiver-in-django

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!