(DRF) Why make a query before create when unique=True?

前端 未结 0 816
失恋的感觉
失恋的感觉 2021-01-12 14:10

I have User model and serializer class which represents it.

class User(models.Model):
username = models.CharField(unique=True, max_length=50)
is_admin = model         


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