From f961c63ad70549b1818942ba757184d4d608b2c4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 14 Apr 2016 14:31:15 +0200 Subject: fix deprecated option name: mimetype vs. content_type 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): -- cgit v0.10.2