s/status_text/text
This commit is contained in:
parent
c3425506cc
commit
2d6c41ae97
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue