Django rest framework, do serializer require fields to be specified?

前端 未结 0 1933
予麋鹿
予麋鹿 2021-01-28 20:39

Let\'s say we have model:

class CompanySource(models.Model):
    company = models.ForeignKey(Company, on_delete=models.CASCADE, related_name=\'company_source\')
          


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