It's too inconvenient to paste the code in the email, I'll just copy a StackOverFlow link.
https://stackoverflow.com/questions/72251670/how-to-construct-nested-queryset-with-django-orm Ignoring the `DRF` part, I want to construct an `object` like this, how to do it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c1d209f7-b68f-49bc-a909-37947ee978a1n%40googlegroups.com.

