Nested Serializer in case of multiple children models

后端 未结 0 738
长情又很酷
长情又很酷 2021-01-15 04:11

Given the following models

class Parent(models.Model)
   type = models.CharField()  # 1 = Child1, 2 = Child2

class Child1(models.Model)
   parent = models.Fo         


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