mirror of
https://github.com/django/django.git
synced 2025-11-28 14:37:59 +00:00
Fixed #22050 -- Fixed defer fields on proxy related models.
This commit is contained in:
parent
815e7a5721
commit
9385aa3198
3 changed files with 20 additions and 2 deletions
|
|
@ -585,7 +585,7 @@ class Query(object):
|
|||
must_include = {orig_opts.concrete_model: set([orig_opts.pk])}
|
||||
for field_name in field_names:
|
||||
parts = field_name.split(LOOKUP_SEP)
|
||||
cur_model = self.model
|
||||
cur_model = self.model._meta.concrete_model
|
||||
opts = orig_opts
|
||||
for name in parts[:-1]:
|
||||
old_model = cur_model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue