How to return username instead of user object in DRF?

后端 未结 0 1800
[愿得一人]
[愿得一人] 2021-01-21 11:24

I want to set a username for each object. Here is my models.py

from django.contrib.auth.models import User
from django.conf import settings


# Tweet Model
class          


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