def renderDetail(self, pkval):
    request = HttpRequest()
request.GET = {'format': 'json'}
resp = self.get_detail(request, pk=pkval)
return resp.content

def renderList(self, options={}):
    request = HttpRequest()
request.GET = {'format': 'json'}
if len(options) > 0:
    request.GET.update(options)
resp = self.get_list(request)
return resp.content
Using tastypie resource in view