How to create new instances of both models contributing in OneToOne relationship in django rest framework (DRF)?

前端 未结 0 1334
粉色の甜心
粉色の甜心 2020-12-05 15:57

I have created an Author model in which it has a OneToOne relationship with default Django User, as below:

from django.contrib.auth.         


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