Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
556 views
in Technique[技术] by (71.8m points)

signals - what's the order of post_save receiver in django?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...