Skip to content

fix(python): missing Decimal to float conversion for body serializer #4618

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

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

Enase
Copy link
Contributor

@Enase Enase commented Mar 21, 2025

🧭 What and Why

Added additional verification that converts Decimal to float in request body serializer.

Fixes ability to serialize and save Django models with DecimalField, resolves algolia/algoliasearch-django#340

@Enase Enase requested a review from a team as a code owner March 21, 2025 19:33
@Enase Enase requested review from Fluf22 and millotp March 21, 2025 19:33
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot!!!!!

@shortcuts shortcuts merged commit 92d94e3 into algolia:main Mar 21, 2025
14 of 16 checks passed
algolia-bot added a commit to algolia/algoliasearch-client-python that referenced this pull request Mar 21, 2025
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.

models.DecimalField no longer supported?
2 participants