diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-14 09:50:28 +0100 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-17 10:17:45 +0100 |
commit | d44de9b933fb7d987d814034769a1ba2eda6545c (patch) | |
tree | d42c4978888074efbb806d45a34fb822a73d0215 /django/core/serializers/python.py | |
parent | ebda5800aeef3f3158b53aa28b3d503bc972a9a7 (diff) | |
download | django-d44de9b933fb7d987d814034769a1ba2eda6545c.tar.gz |
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()!
Diffstat (limited to 'django/core/serializers/python.py')
-rw-r--r-- | django/core/serializers/python.py | 3 |
1 files changed, 2 insertions, 1 deletions
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"]) |