Skip to content

Conversation

@hyperstown
Copy link

@hyperstown hyperstown commented Feb 18, 2024

Hi I added code that will cast all COUNT() calls to int.
Decimal count may not break plain Django but it's something very non-standard and can break many things. For example it makes parts of Django Rest Framework unusable since many build in mixins expect count to be int.
Fixes #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aggregate Count(*) returns Decimal.

1 participant