Code

Ticket #18022: import_json.diff

File import_json.diff, 456 bytes (added by Clueless, 2 years ago)
Line 
1diff --git a/django/utils/simplejson/__init__.py b/django/utils/simplejson/__init__.py
2index a9418da..95cd129 100644
3--- a/django/utils/simplejson/__init__.py
4+++ b/django/utils/simplejson/__init__.py
5@@ -129,6 +129,7 @@ if not use_system_version:
6 
7         use_system_version = True
8         # Make sure we copy over the version. See #17071
9+        import json
10         __version__ = json.__version__
11     except (ImportError, NameError):
12         pass