mirror of
https://github.com/django/django.git
synced 2025-09-26 20:19:16 +00:00
Fixed #23001 -- Fixed mixing defer and annotations
This commit is contained in:
parent
954e7b8aad
commit
5b0375ec3e
2 changed files with 26 additions and 1 deletions
|
@ -260,7 +260,7 @@ class QuerySet(object):
|
|||
load_fields.append(field.name)
|
||||
|
||||
skip = None
|
||||
if load_fields and not fill_cache:
|
||||
if load_fields:
|
||||
# Some fields have been deferred, so we have to initialize
|
||||
# via keyword arguments.
|
||||
skip = set()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue