Hi There! How to make `only` for nested model fields Example: ```python class A: id = fields.IntField() name = fields.CharField() other_field = fields.CharField() class B: id = fields.IntField() b_name = fields.CharField() a = fields.ForeignKeyField('models.A', related_name='Bs', on_delete=fields.CASCADE) B.all().select_related('a').only('id', 'b_name', 'a__name') ``` This example will throw ```python KeyError: 'a__name' ```
Activity
long2ice commentedon Sep 22, 2021
Current you can use
.valuesfalled10 commentedon Sep 23, 2021
@long2ice this won't help if you want to use pydantic schemas :(
oyish commentedon Nov 14, 2021
i need it too.
Qlas commentedon Sep 12, 2024
This feature could be useful in our project.