When the high mark is 0 on a queryset .count() returns the full number instead of 0
Though this is a bit of an edge case(and not realistic) it's a trivial fix.
Attachments
(2)
- count-0.diff
(949 bytes
) - added by Alex Gaynor 16 years ago.
- 10202-r9814.diff
(1.6 KB
) - added by Ramiro Morales 16 years ago.
- More nitpicking, Fix another Query high_mark comparison against None corner case, add a test and move tests to under regressiontests
Download all attachments as:
.zip
Change History
(5)
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
More nitpicking, Fix another Query high_mark comparison against None corner case, add a test and move tests to under regressiontests