django's post_save() and data from request
I desperately need to be able to get some开发者_运维知识库 information from the request array on post_save() for a certain model. Is it possible to do that somehow?
I think your best bet would be to override the save()
method on that model and emit the post save signal along with the specific data you need to send. See Sending Signals to learn how.
An alternative (albeit a very dirty hackish way) would be to have an additional column in the model which saves the data you need to send out (although you would still have to override the save()
method on the model).
精彩评论