From 302a5db65edffda5d366c3077c6690d06e2edd49 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Thu, 26 May 2011 19:10:16 +0200 Subject: activate json instead of string diff --git a/nop/views.py b/nop/views.py index 1fd78a5..6a88607 100644 --- a/nop/views.py +++ b/nop/views.py @@ -106,14 +106,14 @@ 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, mimetype='text/plain') + return HttpResponse(response, mimetype='application/json') + #return HttpResponse(response, mimetype='text/plain') 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, mimetype='text/plain') + return HttpResponse(response, mimetype='application/json') + #return HttpResponse(response, mimetype='text/plain') def nop_form(request): -- cgit v0.10.2