Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix/feat - Cast COUNT() to INT, fixes #22 #42

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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