summaryrefslogtreecommitdiff
path: root/nop
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-05-26 17:10:16 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-05-26 17:10:16 (GMT)
commit302a5db65edffda5d366c3077c6690d06e2edd49 (patch)
treec7442ee8f925804a5ab5bbbbfd2779f45d311f68 /nop
parentd04d0ad1f861a1038ae95868205878452e93ec10 (diff)
activate json instead of string
Diffstat (limited to 'nop')
-rw-r--r--nop/views.py8
1 files changed, 4 insertions, 4 deletions
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):