Replies: 1 comment
-
I try:
but his retrun Full model: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have 2 models:
and exemple route:
I want to return GetOnlyCategory. But i want see inside Pydantic model in .products = await category.products(is_active=True). How can i do this? Thanks
I try in PydanticMeta computed = ["active_product"] but i not can call await inside method active_product.
I try
@propery
async def active_products(self)
but Pydantic not see this is field.
Help me pls
Beta Was this translation helpful? Give feedback.
All reactions