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

Closes #17761: Store empty CharField choices as null #17814

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

jeremystretch
Copy link
Member

Fixes: #17761

  • Add null=True to all optional CharFields with choices set
  • Automatically update all empty string values with null during migration
  • Miscellaneous cleanup inside models to avoid writing empty string values

@jeremystretch jeremystretch added this to the v4.2 milestone Oct 21, 2024
@jeremystretch jeremystretch merged commit ef1fdf0 into feature Oct 21, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 17761-null-CharFields branch October 21, 2024 17:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants