diff --git a/oxdjango/shortcuts.py b/oxdjango/shortcuts.py index bb13859..57a314d 100644 --- a/oxdjango/shortcuts.py +++ b/oxdjango/shortcuts.py @@ -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