From f00f2480f1272332e7dd0f08f184bb8c1ace58b7 Mon Sep 17 00:00:00 2001 From: Adam Hill Date: Sat, 28 Dec 2013 22:21:08 -0500 Subject: [PATCH] Clean up django.utils.simplejson warning. --- questionnaire/models.py | 2 +- questionnaire/qprocessors/choice.py | 2 +- questionnaire/qprocessors/range.py | 2 +- questionnaire/qprocessors/simple.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/questionnaire/models.py b/questionnaire/models.py index 62d5cfa..647f1d9 100644 --- a/questionnaire/models.py +++ b/questionnaire/models.py @@ -4,7 +4,7 @@ from django.utils.translation import ugettext_lazy as _ from questionnaire import QuestionChoices import re from utils import split_numal -from django.utils import simplejson as json +import json from parsers import parse_checks, ParseException from django.conf import settings diff --git a/questionnaire/qprocessors/choice.py b/questionnaire/qprocessors/choice.py index ef911bf..c3001c8 100644 --- a/questionnaire/qprocessors/choice.py +++ b/questionnaire/qprocessors/choice.py @@ -1,6 +1,6 @@ from questionnaire import * from django.utils.translation import ugettext as _, ungettext -from django.utils.simplejson import dumps +from json import dumps @question_proc('choice', 'choice-freeform') def question_choice(request, question): diff --git a/questionnaire/qprocessors/range.py b/questionnaire/qprocessors/range.py index f2ee22b..2845d25 100644 --- a/questionnaire/qprocessors/range.py +++ b/questionnaire/qprocessors/range.py @@ -1,7 +1,7 @@ from questionnaire import * from django.conf import settings from django.utils.translation import ugettext as _ -from django.utils.simplejson import dumps +from json import dumps @question_proc('range') def question_range(request, question): diff --git a/questionnaire/qprocessors/simple.py b/questionnaire/qprocessors/simple.py index 7995cc9..13cdb21 100644 --- a/questionnaire/qprocessors/simple.py +++ b/questionnaire/qprocessors/simple.py @@ -1,6 +1,6 @@ from questionnaire import * from django.utils.translation import ugettext as _ -from django.utils.simplejson import dumps +from json import dumps @question_proc('choice-yesno','choice-yesnocomment','choice-yesnodontknow') def question_yesno(request, question):