Use django.utils.simplejson in soc.views.models.base pick method instead of our standalone simplejson module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 31 Jan 2009 11:25:53 +0000
changeset 1098 e5c06755ecd8
parent 1097 1f7015b33a0c
child 1099 ec67ea2f380b
Use django.utils.simplejson in soc.views.models.base pick method instead of our standalone simplejson module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed
app/soc/views/models/base.py
--- a/app/soc/views/models/base.py	Fri Jan 30 22:02:20 2009 +0000
+++ b/app/soc/views/models/base.py	Sat Jan 31 11:25:53 2009 +0000
@@ -24,9 +24,8 @@
   ]
 
 
-import simplejson
-
 from django import http
+from django.utils import simplejson
 from django.utils.translation import ugettext
 
 from soc.logic import dicts
@@ -568,9 +567,6 @@
       params: a dict with params for this View
     """
 
-    if not simplejson:
-      raise Exception("Simplejson not installed")
-
     get_dict = request.GET
 
     # scope_path is not required