#32059: Issue when counting a model extending auth_user by month
-------------------------------------+-------------------------------------
     Reporter:  anderleich           |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  2.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I think you need to `count=Count("month")`, rather than the PK.
 ([https://docs.djangoproject.com/en/3.1/topics/db/aggregation/ See the
 aggregation topic guide.])


 Please don't use the issue tracker as a secondary support channel. See
 TicketClosingReasons/UseSupportChannels

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32059#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.764896437f4a53082d91c0cdb5bc5c8c%40djangoproject.com.

Reply via email to