Direct assignment to the reverse side of a many-to-many set is prohibited. Use products.set() instead. Django REST Framework

I’m getting this error
“Direct assignment to the reverse side of a many-to-many set is prohibited. Use products.set() instead”
when I’m trying to insert a field of a tree like structure of a model and don’t know what to do ,for help and for more details please have a look at the stackoverflow Question
https://stackoverflow.com/questions/53419386/direct-assignment-to-the-reverse-side-of-a-many-to-many-set-is-prohibited-use-p

原文链接:Direct assignment to the reverse side of a many-to-many set is prohibited. Use products.set() instead. Django REST Framework

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容