I\'m working on a API for a project and I have a relationship Order/Products through OrderProducts like this:
In models.py
class Product(models.Model
The solution lies in overriding the save_m2m() method on the resource. In my case I needed the manytomany field for only listing, so overridden the save_m2m() method to do nothing.