mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Since this example was added 15 years ago ina8ccdd0fcd
, the ORM has gained the ability to do the `COUNT(*)` related query, so do it with the ORM to avoid misleading users that raw SQL is only supported from manager methods. Backport of59e503b670
from master