Skip to content

Exclude fields from nested models with SQLAlchemyDTO #2285

Closed Answered by Alc-Alc
Alurith asked this question in Q&A
Discussion options

You must be logged in to vote

Heya, there is a typo here

config = DTOConfig(exclude={"id", "children.0.parent_id" "children.0.id"})

it must be

config = DTOConfig(exclude={"id", "children.0.parent_id", "children.0.id"})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Alurith
Comment options

Answer selected by JacobCoffee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants