diff options
-rw-r--r-- | nop/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nop/views.py b/nop/views.py index a8d7084..12e2ada 100644 --- a/nop/views.py +++ b/nop/views.py @@ -120,12 +120,12 @@ def _bydate(year=None, month=None, day=None, hour=None, minute=None): def get_current(request): response = json.dumps(_current()) - return HttpResponse(response, mimetype='application/json') + return HttpResponse(response, content_type='application/json') def get(request, year=None, month=None, day=None, hour=None, minute=None): response = json.dumps(_bydate(year, month, day, hour, minute)) - return HttpResponse(response, mimetype='application/json') + return HttpResponse(response, content_type='application/json') def nop_form(request): |