Skip to content

Instantly share code, notes, and snippets.

@yumike
Created February 1, 2012 06:15
Show Gist options
  • Save yumike/1715447 to your computer and use it in GitHub Desktop.
Save yumike/1715447 to your computer and use it in GitHub Desktop.
from django.utils import simplejson as json
class JSONRequestMixin(object):
def get_request_data(self):
return json.loads(self.request.body)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment