brack3t/django-braces — pull request #13 by drewtempelmeyer (2012-10-12 03:38:54+00:00)
Title: Add AjaxResponseMixin for separating ajax requests from HTML requests. Add support for Django model serialization in JSONResponseMixin.

This pull requests includes AjaxResponseMixin which allows developers to separate HTML logic from ajax logic. The mixin will dispatch ajax GET and POST requests to get_ajax and post_ajax, respectively.

render_json_object_response was added to JSONResponseMixin to support JSON serialization of Django models. **kwargs supports passing additional arguments to the serialization method.