Table1 Table2 Table3 
id id id 
fld fk_table1 fld 
fld fk_table3 fld 
fld 
fld 
fld 
fld 
fld 
fld 

I have written the serialization for table 1. It is able to fetch the table 
1 data. But I also want to fetch the data from table 3 as well based on the 
matching keys from table 2.

Thanks for the help




On Thursday, 20 July 2017 23:16:48 UTC+5:30, Sanjay S Nair wrote:
>
> Hello All
>
> I don't have much experiece on DRF.
>
> I have:
> 1. A table with 5 fields(char)
> 2. another table with set of fields.
> 3. An association table which has a pk, fk of first table, fk of second 
> table
>
> How do I fetch the data using the DRF from the 3rd table, which has only 
> the foreign keys.
>
> And after I fetch these, how to include this serialized data with another 
> parent serialized data?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to