mirror of
https://github.com/jazzband/django-admin-sortable.git
synced 2026-04-12 10:51:02 +00:00
Fixed comparison operator according to PEP8.
This commit is contained in:
parent
9935f65ca0
commit
b705c924f0
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue