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

fix ValidationError on empty form rendering #75

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

amyasnikov
Copy link
Contributor

Fixes #68

The fix is pretty straightforward
@surenkov take a look pls

@surenkov surenkov self-requested a review December 17, 2024 11:13
Copy link
Owner

@surenkov surenkov left a comment

Choose a reason for hiding this comment

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

Looks neat, thank you Anton, really appreciate your contribution!

The only thing that concerns me is the fact that it does not distinguish between real None that is passed to the form value and the absence of the value as it is. Though I believe there's no easy way to distinguish these two states in Django forms..

@surenkov surenkov merged commit 6afa93f into surenkov:master Dec 20, 2024
14 checks passed
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.

Validation error when rendering admin interface with no default
2 participants