Monday, February 1, 2021

Django rext framework join multiple table without nested data

i have  a two table and want to fetch data based on their relationship using serializer. I'm able to get nested data like

{
'ID':1,
'name':'abc',
'address':[
{
....
}
]


but i want it as in single not as nested
{
.....
}

can any body help me with sample code or reference me a good example so i can understand

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/551a9e41-d743-40d2-bab9-f4e6eb8ea941n%40googlegroups.com.

No comments:

Post a Comment