How can I show the StringRelatedField instead of the Primary Key while still being able to write-to that field using Django Rest Framework?

前端 未结 0 1193
面向向阳花
面向向阳花 2020-12-11 16:15

Models:

class CrewMember(models.Model):

    DEPARTMENT_CHOICES = [
        ("deck", "Deck"),
        ("engineering", "Engi         


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