Import the simplejson module by itself.
authorJason Stephenson <jason@sigio.com>
Mon, 5 Mar 2018 16:13:11 +0000 (11:13 -0500)
committerJason Stephenson <jason@sigio.com>
Mon, 5 Mar 2018 19:14:02 +0000 (14:14 -0500)
The django.utils.simplejson module was removed in Django 1.7.

Signed-off-by: Jason Stephenson <jason@sigio.com>
conifer/integration/evergreen_example.py
conifer/integration/uwindsor.py
conifer/libsystems/evergreen/support.py
conifer/syrup/models.py
conifer/syrup/views/_common.py

index a07127c..daaa257 100644 (file)
@@ -4,7 +4,7 @@ import csv
 import subprocess
 from django.conf                          import settings
 from urllib2 import urlopen
-from django.utils import simplejson
+import simplejson
 try:
     from conifer.libsystems.evergreen import opensrf
 except ImportError:
index 061c929..0a4c478 100644 (file)
@@ -6,7 +6,7 @@ import subprocess
 import uwindsor_fuzzy_lookup
 from django.conf                          import settings
 from urllib2 import urlopen
-from django.utils import simplejson
+import simplejson
 
 
 class UWindsorIntegration(EvergreenIntegration):
index d727ad5..b3a155c 100644 (file)
@@ -1,7 +1,7 @@
 import warnings
 import urllib2
 from urllib import quote
-from django.utils import simplejson as json
+import simplejson as json
 from xml.etree import ElementTree
 import re
 import sys, os
index e286d2c..5c81f6e 100644 (file)
@@ -11,7 +11,7 @@ from django.conf                     import settings
 from django.contrib.auth.models      import AnonymousUser, User
 from django.db                       import models as m
 from django.db.models                import Q
-from django.utils                    import simplejson as json
+import simplejson as json
 from django.utils.translation        import ugettext as _
 from genshi                          import Markup
 
index 7f26453..11e8db5 100644 (file)
@@ -37,7 +37,7 @@ from django.http                    import (HttpResponse, HttpResponseRedirect,
                                             HttpResponseNotFound,
                                             HttpResponseForbidden)
 from django.shortcuts               import get_object_or_404
-from django.utils                   import simplejson
+import simplejson
 from django.utils                   import translation
 from _generics                      import * # TODO: should not import-star