Opened 4 years ago
Last modified 4 years ago
#32058 closed New feature
Add count to RawQueryset — at Version 1
Reported by: | jkevingutierrez | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 3.1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
count() doesn't exist in RawQuerySet. It would be good to have the count method
AttributeError: 'RawQuerySet' object has no attribute 'count'
Here is an implementation:
https://stackoverflow.com/a/18179123/4508187
Note:
See TracTickets
for help on using tickets.