(self)
return HttpResponse(json.dumps(response, cls=LazyEncoder))
Return this in the post method of your view class.
Return this in the post method of your view class.
Return this in the post method of your view class .
def paginate_crud_response(self):
        """
        Return this in the post method of your view class.
        """
        response = getattr(self, '%s_response' % self.action)
        return HttpResponse(json.dumps(response, cls=LazyEncoder))
def paginate_crud_response ( self ) : response = getattr ( self , '%s_response' % self . action ) return HttpResponse ( json . dumps ( response , cls = LazyEncoder ) )