def deserialize_data(self, request): ''' Deserialize the data from the POST request to valid python object. ''' return Resource.deserialize(self, request, request.body, format=request.META.get('CONTENT_TYPE', 'application/json')) # @IgnorePep8