diff options
Diffstat (limited to 'django/contrib/contenttypes/models.py')
| -rw-r--r-- | django/contrib/contenttypes/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/contrib/contenttypes/models.py b/django/contrib/contenttypes/models.py index ce9afdb8ad..522bf2d279 100644 --- a/django/contrib/contenttypes/models.py +++ b/django/contrib/contenttypes/models.py @@ -60,11 +60,10 @@ class ContentTypeManager(models.Manager): self._add_to_cache(self.db, ct) return ct - def get_for_models(self, *models, **kwargs): + def get_for_models(self, *models, for_concrete_models=True): """ Given *models, returns a dictionary mapping {model: content_type}. """ - for_concrete_models = kwargs.pop('for_concrete_models', True) results = {} # Models that aren't already in the cache. needed_app_labels = set() |
