joestump/django-ajax — pull request #41 by gmcquillan (2013-07-18 20:39:43+00:00)
Title: Allow Original Exception Message To Pass Through

Currently, if you run into an excetion that's not an AJAXExcetion by the json decorator, we actually create a new exception in trying to present the original.

This happens because our overridden get_response tires to ``.decode`` a TypeError type, which isn't a string, unicode or otherwise. I've fixed this by ensuring that we'll be trying to ``.decode`` some kind of string object.

Please feel free to ignore the other import changes. I was just removing unused imports in another commit and they've bled through to this PR.