#19313: Count Aggregation documentation -------------------------------+------------------------- Reporter: ebertti@… | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 1.4 Severity: Normal | Keywords: aggregation Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+------------------------- add something in the documentation talking about the possibility of using distinct aggregation done by count.
like: Number of authors by category: {{{ #!python Author.objects.values('post__category__name').aggregate(qtd=Count('id', distinct=True)) }}} There is nothing on the internet or in the documentation and talking something about it. I find that looking at the code. -- Ticket URL: <https://code.djangoproject.com/ticket/19313> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.