what's the order of post_save receiver in djan

2019-01-29 06:12发布

问题:

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.