Skip to content

Allow None for ListField.min/max_length #601

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
Apr 26, 2024

Conversation

Viicos
Copy link
Contributor

@Viicos Viicos commented Apr 26, 2024

At runtime, this defaults to None:

self.max_length = kwargs.pop('max_length', None)
self.min_length = kwargs.pop('min_length', None)

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks!

@sobolevn sobolevn merged commit e00d4ce into typeddjango:master Apr 26, 2024
12 checks passed
@Viicos Viicos deleted the listfield-none branch April 26, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants