users <- members -> organizations where members is a through table with a "role" column. I want the json response to return a list of organizations to which the authenticated user belongs. I want the role value from the members table to be added as a field to each organization in the response.
Models: https://gist.github.com/9e20ada78cbf04db3116b784c648e0f4 (Membership is what is throwing me off) Views: https://gist.github.com/f650f3604b0bdfbf8d42734437862f61(OrganizationsViewSet) Serializers: https://gist.github.com/a49af9c36240c6e7c2f304c99abe49aa(OrganizationSerializer) Example API Resp: https://gist.github.com/3a9f4ce01420b6356c43007386995f91 -- 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.
