summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-03-15 16:13:28 +0100
committerGitHub <noreply@github.com>2022-03-15 16:13:28 +0100
commit3eaba13a476c14b75429ba34180184b81997b33a (patch)
treea4e126174c12e74712ad58fd9e493a0f0987773c
parentbe80aa55ec120b3b6645b3efb77316704d7ad948 (diff)
Removed unnecessary _connector from Q construction in get_for_models().
Q._connector defaults to Q.AND. Follow up to 859a87d873ce7152af73ab851653b4e1c3ffea4c.
-rw-r--r--django/contrib/contenttypes/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/contenttypes/models.py b/django/contrib/contenttypes/models.py
index b83c9afcae..0c1c640072 100644
--- a/django/contrib/contenttypes/models.py
+++ b/django/contrib/contenttypes/models.py
@@ -82,7 +82,7 @@ class ContentTypeManager(models.Manager):
# Lookup required content types from the DB.
condition = Q(
*(
- Q(("app_label", app_label), ("model__in", models), _connector=Q.AND)
+ Q(("app_label", app_label), ("model__in", models))
for app_label, models in needed_models.items()
),
_connector=Q.OR,