Is there another way to annotate Count/Sum in existing queryset?

后端 未结 0 1533
后悔当初
后悔当初 2020-12-13 00:47

Let me illustrate the problem with canonical models Book&Author:

class Author(models.Model):
    name = models.CharField(max_length=100)

class Book(model         


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