From dad803fc73a85d1f6bcf906bcce5e35197de03e4 Mon Sep 17 00:00:00 2001 From: Theodoricus Date: Sun, 14 Jun 2015 03:29:54 +0200 Subject: [PATCH] Fixed simplejson --- favit/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/favit/views.py b/favit/views.py index 9e80912..2d572a2 100644 --- a/favit/views.py +++ b/favit/views.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseNotAllowed, HttpResponseBadRequest -from django.utils import simplejson +from django.utils import json from .models import Favorite @@ -35,7 +35,7 @@ def add_or_remove(request): } return HttpResponse( - simplejson.dumps(response, ensure_ascii=False), + json.dumps(response, ensure_ascii=False), mimetype='application/json' )