How to access field from ManyToMany relation on top of Foreign key relation in a django serializer?

后端 未结 0 1741
南笙
南笙 2020-12-04 04:10

I have the following structure:

class Model_1():
    model_2_ref = models.ForeignKey(to="Model_2", null=True, on_delete=models.SET_NULL)
    model_1         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题