You can override this default name by providing an alias when you specify the annotation: >>> q = Book.objects.annotate(num_authors=Count("authors")) > ...
確定! 回上一頁