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

Bugfix/28404 showing empty value for empty strings in django admin #17699

Conversation

e11bits
Copy link
Contributor

@e11bits e11bits commented Jan 5, 2024

This is a PR to pickup ticket 28404 again. Prior PRs are #9391 #8776 and #9390 .

This is my first PR for Django, addressing not showing the empty_display_value if value is the empty string and not None in the admin app. Please advise as you see fit.

@e11bits e11bits force-pushed the bugfix/28404_showing_empty_value_for_empty_strings_in_django_admin branch 4 times, most recently from ae74bef to 45bd83e Compare January 5, 2024 21:35
@e11bits e11bits force-pushed the bugfix/28404_showing_empty_value_for_empty_strings_in_django_admin branch from 45bd83e to a2d87b0 Compare January 5, 2024 22:24
@e11bits e11bits closed this Jan 5, 2024
@e11bits
Copy link
Contributor Author

e11bits commented Jan 5, 2024

I need to look a bit deeper into this and maybe make some changes. So to not waste anybody's time I'm closing the pull request for now and going to reopen it once I got some more insight.

@e11bits
Copy link
Contributor Author

e11bits commented Jan 6, 2024

I now check for value in field.empty_values instead only None and "", which should cover all the "empty" cases.

@e11bits
Copy link
Contributor Author

e11bits commented Jan 6, 2024

Reopening the PR

@e11bits
Copy link
Contributor Author

e11bits commented Jan 6, 2024

Opened a new pull request here (Can't edit the ticket right now ...)

#17702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant