summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-14 12:31:15 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-14 12:31:27 (GMT)
commitf961c63ad70549b1818942ba757184d4d608b2c4 (patch)
treee0b0a99cd138aacae11333665bb3588c217bf878
parent1ed08abdb85c7c84d5526c33cdf9d09b3bbe185b (diff)
fix deprecated option name: mimetype vs. content_type
-rw-r--r--nop/views.py4
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):