mirror of
https://github.com/django/django.git
synced 2025-10-27 23:56:08 +00:00
Used "is" for comparisons with None.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user