summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
committerTim Graham <timograham@gmail.com>2013-10-10 09:35:56 -0400
commitcec11a3336c730e6dc2f1966fee749cc830e97c0 (patch)
tree014c34809c0d39ca63c711e6168d297b9de013b3 /django/forms
parentff9e8eccf89fc1dce441736c39dcb6e218ca8940 (diff)
Used "is" for comparisons with None.
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: