Skip to content

Conversation

g-builder-0
Copy link

Note: Before submitting a code change, please review our contributing guidelines.

Description

Django 5.x now attaches min_value and max_value automatically to BigIntegerField.
This PR updates the test regex in TestRegularFieldMappings.test_regular_fields to accept these constraints.
Without this change, tests fail under Django 5.2.5.

Copy link
Collaborator

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

can you please also fix the pre commit issues?

Comment on lines +172 to +179
boolean_field = BooleanField\(.*\)
char_field = CharField\(.*\)
comma_separated_integer_field = CharField\(.*\)
date_field = DateField\(.*\)
datetime_field = DateTimeField\(.*\)
decimal_field = DecimalField\(.*\)
email_field = EmailField\(.*\)
float_field = FloatField\(.*\)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It feels like this is is changing more than needed... What was the rationale for changing these seemingly unrelated fields to have a .* in the kwargs?

@Infamous003
Copy link

Has this issue been fixed? Because I tried recreating it, but none of the test cases fail. I'm on Django 5.2.5

@browniebroke
Copy link
Collaborator

browniebroke commented Oct 9, 2025

Has this issue been fixed? Because I tried recreating it, but none of the test cases fail. I'm on Django 5.2.5

Yes, good question. Looking again at the changes, I'm not sure I understand what is the problem here. I see no failures on my end either

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.

4 participants