summaryrefslogtreecommitdiff
path: root/django/forms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/widgets.py')
-rw-r--r--django/forms/widgets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py
index 498185fe23..c758b36e91 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -681,7 +681,7 @@ class Select(ChoiceWidget):
def _choice_has_empty_value(choice):
"""Return True if the choice's value is empty string or None."""
value, _ = choice
- return (isinstance(value, str) and not bool(value)) or value is None
+ return (isinstance(value, str) and not value) or value is None
def use_required_attribute(self, initial):
"""