Why in views.py those callback functions are used? It seems to me that a simple return in case of success and raising an error in case of failure do the job better. It's hard to pass additional arguments to callbacks (via kwargs), that causes errors like . And control flow gets cluttered.
Sorry, I did not notice that the project moved and posted the bug there. Please make it invalid or so.