How to add a value to the serializer that is not in the Model?

前端 未结 0 940
离开以前
离开以前 2020-11-21 18:12

t when requesting films, it would return in the form movie id and number of comments, my model:

class Movie(models.Model):
    Title = models.CharField(max_le         


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