From d44de9b933fb7d987d814034769a1ba2eda6545c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 14 Dec 2013 09:50:28 +0100 Subject: Removed the _-prefix for populate(). Several parts of Django call get_apps() with a comment along this lines of "this has the side effect of calling _populate()". I fail to see how this is better than just calling populate()! --- django/core/serializers/python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'django/core/serializers/python.py') diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py index 07f857a198..47edc80217 100644 --- a/django/core/serializers/python.py +++ b/django/core/serializers/python.py @@ -88,7 +88,8 @@ def Deserializer(object_list, **options): db = options.pop('using', DEFAULT_DB_ALIAS) ignore = options.pop('ignorenonexistent', False) - app_cache.get_apps() + app_cache.populate() + 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