From 80d74097b4bd7186ad99b6d41d0ed90347a39b21 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 30 Dec 2013 15:42:15 +0100 Subject: 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. --- django/core/serializers/python.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'django/core/serializers/python.py') 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"]) -- cgit v1.3