mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 17:56:30 +00:00
Style fixes
This commit is contained in:
@@ -184,7 +184,7 @@ def FilterChildren(queryset, parent):
|
||||
|
||||
if not parent:
|
||||
return queryset
|
||||
elif isinstance(parent,str) and parent.lower() in ['none', 'false', 'null', 'top', '0']:
|
||||
elif isinstance(parent, str) and parent.lower() in ['none', 'false', 'null', 'top', '0']:
|
||||
return queryset.filter(parent=None)
|
||||
else:
|
||||
try:
|
||||
|
Reference in New Issue
Block a user