Same comment as before -- you wrap the entire function with this, and if an exception gets thrown (like the raise Http404 on line 689/695), it will cause the commit_manually wrapper to fail.