how to set context values in serializer fields in django?

后端 未结 0 1921
日久生厌
日久生厌 2021-01-04 05:34

I have these models

class Patient(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)

class Doctor(models.Mode         


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