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

Accept integers as min/max values of DecimalField #9515

Merged

Conversation

browniebroke
Copy link
Contributor

@browniebroke browniebroke commented Aug 29, 2024

Description

The type of min/max values for DecimalField should be Decimal objects since #8972 and we turn this into a Python warning in #9367. However, @terencehonles pointed out that integers should be accepted.

Update the warning to ignore integers and clarify in the docs what types are accepted.

@auvipy auvipy self-requested a review August 30, 2024 08:58
@tomchristie
Copy link
Member

#8972 (comment) that integers should be accepted, but that might be a separate discussion...

Good call, yep.

@browniebroke browniebroke changed the title Use Decimal for min/max values of DecimalField in tests & docs Accept integers as min/max values of DecimalField Sep 6, 2024
@browniebroke browniebroke force-pushed the decimal-field-min-max-values-types branch from d2ab1ef to 9fef0f6 Compare September 6, 2024 15:45
@auvipy auvipy merged commit 125ad42 into encode:master Sep 7, 2024
7 checks passed
@browniebroke browniebroke deleted the decimal-field-min-max-values-types branch September 7, 2024 16:03
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.

3 participants