mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Fix new flake8 error F632
This commit is contained in:
parent
94c9a99156
commit
5817a42bf0
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ class PageQuerySet(SearchableQuerySetMixin, TreeQuerySet):
|
|||
if extra_chars != 0:
|
||||
common_parent_path = common_parent_path[:-extra_chars]
|
||||
|
||||
if common_parent_path is '':
|
||||
if common_parent_path == '':
|
||||
# This should only happen when there are multiple trees,
|
||||
# a situation that Wagtail does not support;
|
||||
# or when the root node itself is part of the queryset.
|
||||
|
|
|
|||
Loading…
Reference in a new issue