Remove last usage of Django's simplejson library
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
from json import loads
|
||||||
|
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
@@ -10,7 +11,6 @@ from django.http import HttpResponseRedirect, Http404
|
|||||||
from django.shortcuts import render_to_response, get_object_or_404
|
from django.shortcuts import render_to_response, get_object_or_404
|
||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
from django.utils.http import urlencode
|
from django.utils.http import urlencode
|
||||||
from django.utils.simplejson import loads
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from common.utils import encapsulate
|
from common.utils import encapsulate
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
from django.template import Library
|
from __future__ import absolute_import
|
||||||
from django.utils.simplejson import dumps
|
|
||||||
|
|
||||||
from common.utils import return_attrib
|
from json import dumps
|
||||||
|
from django.template import Library
|
||||||
|
|
||||||
|
from ..utils import return_attrib
|
||||||
|
|
||||||
register = Library()
|
register = Library()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
|
from json import loads
|
||||||
import operator
|
import operator
|
||||||
|
|
||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
@@ -10,7 +11,6 @@ from django.core.urlresolvers import reverse_lazy
|
|||||||
from django.http import HttpResponseRedirect, Http404
|
from django.http import HttpResponseRedirect, Http404
|
||||||
from django.shortcuts import render_to_response, get_object_or_404
|
from django.shortcuts import render_to_response, get_object_or_404
|
||||||
from django.template import RequestContext
|
from django.template import RequestContext
|
||||||
from django.utils.simplejson import loads
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from acls.classes import EncapsulatedObject
|
from acls.classes import EncapsulatedObject
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
from json import loads
|
||||||
from optparse import make_option
|
from optparse import make_option
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from django.core.management.base import CommandError, LabelCommand
|
from django.core.management.base import CommandError, LabelCommand
|
||||||
from django.utils.simplejson import loads
|
|
||||||
|
|
||||||
from documents.models import DocumentType
|
from documents.models import DocumentType
|
||||||
from metadata.api import convert_dict_to_dict_list
|
from metadata.api import convert_dict_to_dict_list
|
||||||
|
|||||||
Reference in New Issue
Block a user