summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms')
-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 f8320117f7..678b963e7e 100644
--- a/django/forms/widgets.py
+++ b/django/forms/widgets.py
@@ -508,7 +508,7 @@ class Select(Widget):
return mark_safe('\n'.join(output))
def render_option(self, selected_choices, option_value, option_label):
- if option_value == None:
+ if option_value is None:
option_value = ''
option_value = force_text(option_value)
if option_value in selected_choices: