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
Fixed #28404 -- Made displaying values in admin respect Field's empty_values. #17702
Fixed #28404 -- Made displaying values in admin respect Field's empty_values. #17702
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@e11bits Thanks for this patch 👍
`test_null_display_for_field` is replaced by - `test_empty_value_display_for_field` - `test_empty_value_display_choices` - `test_empty_value_display_booleanfield` PR recommendation by @felixxm django#17702 (comment)
7627fb0
to
ce1c14c
Compare
6017785
to
a330fbb
Compare
I added a new test |
Two tests failed because of "TimeoutError: SMTP server started, but not responding within allotted time. This might happen if the system is too busy. Try increasing the I guess this just temporary? Can I trigger the test run again (without doing another commit)? |
a330fbb
to
c36dc38
Compare
I merged the first commit, 1b0a899. Please rebase. |
c36dc38
to
dd2eca2
Compare
dd2eca2
to
a5a9a59
Compare
a5a9a59
to
63b0773
Compare
Updated the PR as suggested. |
63b0773
to
9b02ad9
Compare
@e11bits Thanks 👍 |
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.
Recreated the PR from a former PR (that I closed and thought could easily reopen again).
I now check for
value in field.empty_values
instead onlyNone
and""
, which should cover all the "empty" cases.