s/status_text/text

This commit is contained in:
j 2010-02-10 19:28:45 +05:30
parent c3425506cc
commit 2d6c41ae97

View file

@ -12,7 +12,7 @@ class HttpErrorJson(Http404):
self.response = response
def json_response(data={}, status=200, text='ok'):
return {'status': {'code': status, 'text': status_text}, 'data': data}
return {'status': {'code': status, 'text': text}, 'data': data}
def render_to_json_response(dictionary, content_type="text/json", status=200):
indent=None