diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-14 12:31:15 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-14 12:31:27 (GMT) |
commit | f961c63ad70549b1818942ba757184d4d608b2c4 (patch) | |
tree | e0b0a99cd138aacae11333665bb3588c217bf878 /nop | |
parent | 1ed08abdb85c7c84d5526c33cdf9d09b3bbe185b (diff) |
fix deprecated option name: mimetype vs. content_type
Diffstat (limited to 'nop')
-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): |