diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-30 15:42:15 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-30 22:11:17 +0100 |
commit | 80d74097b4bd7186ad99b6d41d0ed90347a39b21 (patch) | |
tree | 7b00c5113c311aaaeba4393701151e916ae7f9f0 /django/core/serializers/python.py | |
parent | 7ed20e015335076fc98ad805eaf241f8a0d872d5 (diff) | |
download | django-80d74097b4bd7186ad99b6d41d0ed90347a39b21.tar.gz |
Stopped populating the app registry as a side effect.
Since it triggers imports, it shouldn't be done lightly.
This commit adds a public API for doing it explicitly, django.setup(),
and does it automatically when using manage.py and wsgi.py.
Diffstat (limited to 'django/core/serializers/python.py')
-rw-r--r-- | django/core/serializers/python.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index 9a59f61d70..3d14a1b509 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -88,8 +88,6 @@ def Deserializer(object_list, **options): db = options.pop('using', DEFAULT_DB_ALIAS) ignore = options.pop('ignorenonexistent', False) - apps.populate_models() - for d in object_list: # Look up the model and starting build a dict of data for it. Model = _get_model(d["model"]) |