Removed unnecessary _connector from Q construction in get_for_models().
Q._connector defaults to Q.AND.
Follow up to 859a87d873
.
This commit is contained in:
parent
be80aa55ec
commit
3eaba13a47
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue