Hi I have a model app_interfacewhich has a foreign key to applicationsmodel and two many to many relation to NodesModel through model provider and another many to many relation to NodesModel through model consumer. NodesModel has foreign key to appfunc, tiertype, place..
Sample class Class app_interface(model.model) : app=model.ForeignKey(Applications) providersdata= model. Manytomany(NodesModel, through=provider, related_name=provider_data) consumersdata= model. Manytomany(NodesModel, through=consumer) related_name=consumer_data Class NodeModel(model.model) : Appfunc=models.ForeignKey(AppFuncModel) tiertype=models.ForeignKey(Tiertypemodel) Place=models.ForeignKey(placemodel) I need to use app_interface model in my app to get all the data in my serializers. Many to many data like appfunc data, tiertype etc using appinterface to create json. Thanks Neha -- 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 django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/CAEdCX3W3WC6aWEj2md21oVPHXtRdeFB07wTepLszjsxvn8nczw%40mail.gmail.com.