From b705c924f0c46c406e30b1dd4071f6fdccf9a99e Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Sat, 4 Oct 2014 11:55:12 -0400 Subject: [PATCH] Fixed comparison operator according to PEP8. --- adminsortable/templatetags/django_template_additions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminsortable/templatetags/django_template_additions.py b/adminsortable/templatetags/django_template_additions.py index 1469bd9..22be8a3 100644 --- a/adminsortable/templatetags/django_template_additions.py +++ b/adminsortable/templatetags/django_template_additions.py @@ -23,7 +23,7 @@ class DynamicRegroupNode(template.Node): def render(self, context): obj_list = self.target.resolve(context, True) - if obj_list == None: + if obj_list is None: # target variable wasn't found in context; fail silently. context[self.var_name] = [] return ''