Re: Multi table association

2017-07-20 Thread Sanjay S Nair
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

Multi table association

2017-07-20 Thread Sanjay S Nair
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. An

Multi table association

2017-07-20 Thread Sanjay S Nair
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. An

Re: Is it possible to set permission_classes for OR relation

2017-07-20 Thread Xavier Ordoquy
Hi, You’ll need to implement an intermediate permission classe that would perform the OR and delegate the permission check to the subclasses. Regards, Xavier Ordoquy, Linovia. > Le 19 juil. 2017 à 19:29, William Huang a écrit : > > Hi All, > > Is it possible to set permission_classes for OR