We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the 2.0 release, _get_FIELD_display throws an error if the value is None. I think the code needs to be changed to:
def _get_FIELD_display(self, cls): value = getattr(cls, self.attname) if value is None: return value return force_text(value.label, strings_only=True)
The text was updated successfully, but these errors were encountered:
5monkeys#58: fix display of None value
ead037a
Merge pull request #59 from twschiller/bugfix/58-display-none
ca5f334
#58: fix display of None value
This was resolved, right? Why is the issue still open?
Sorry, something went wrong.
No branches or pull requests
In the 2.0 release, _get_FIELD_display throws an error if the value is None. I think the code needs to be changed to:
The text was updated successfully, but these errors were encountered: