Modernized custom manager example
Modernized custom manager example

Since this example was added 15 years ago in a8ccdd0fcd631e8e928ef20547e1fe3e313dc607, 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.

solarissmoke/django,dsanders11/django,solarissmoke/django,auvipy/django,manhhomienbienthuy/django,shaib/django,atul-bhouraskar/django,freakboy3742/django,elena/django,rsalmaso/django,manhhomienbienthuy/django,auvipy/django,apollo13/django,MarkusH/django,manhhomienbienthuy/django,ghickman/django,blighj/django,django/django,blighj/django,felixxm/django,atul-bhouraskar/django,freakboy3742/django,django/django,shaib/django,elena/django,dsanders11/django,apollo13/django,solarissmoke/django,manhhomienbienthuy/django,elena/django,ghickman/django,solarissmoke/django,atul-bhouraskar/django,takis/django,felixxm/django,rsalmaso/django,rsalmaso/django,takis/django,monetate/django,apollo13/django,shaib/django,ghickman/django,felixxm/django,atul-bhouraskar/django,shaib/django,pauloxnet/django,django/django,takis/django,auvipy/django,blighj/django,adamchainz/django,MarkusH/django,monetate/django,pauloxnet/django,pauloxnet/django,takis/django,monetate/django,pauloxnet/django,apollo13/django,felixxm/django,adamchainz/django,django/django,monetate/django,freakboy3742/django,dsanders11/django,rsalmaso/django,blighj/django,adamchainz/django,elena/django,MarkusH/django,MarkusH/django,dsanders11/django,adamchainz/django,auvipy/django,ghickman/django