Answers for ".annotate unique distinct"

1

.annotate unique distinct

# Count Avg Sum etc. take a distinct argument for finding unique values
p = Project.objects.all().annotate(Count('unit__name', distinct=True))
Posted by: Guest on January-11-2022

Python Answers by Framework

Browse Popular Code Answers by Language