Changes between Initial Version and Version 1 of Ticket #33091, comment 8


Ignore:
Timestamp:
Dec 9, 2022, 6:12:32 AM (2 years ago)
Author:
Bhuvnesh

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33091, comment 8

    initial v1  
    1 I think there is no direct way to get child field from opts of parent model in inheritance. The value of field is None at [https://github.com/django/django/blob/9da2210f121085e998dc7cedb783bc4568390b92/django/db/models/sql/query.py#L1631 this part] ,throwing different field error [https://github.com/django/django/blob/9da2210f121085e998dc7cedb783bc4568390b92/django/db/models/sql/query.py#L1714 here.] Is it the expected behaviour? or we are supposed to get the child field and later raise field error {{{Joined field references are not permitted in this query.}}}
     1I think there is no direct way to get child field from opts of parent model in inheritance. For the testcase provided by shai the value of field is None at [https://github.com/django/django/blob/9da2210f121085e998dc7cedb783bc4568390b92/django/db/models/sql/query.py#L1631 this part] ,throwing different field error [https://github.com/django/django/blob/9da2210f121085e998dc7cedb783bc4568390b92/django/db/models/sql/query.py#L1714 here.] Is it the expected behaviour? or we are supposed to get the child field and later raise field error {{{Joined field references are not permitted in this query.}}}
Back to Top