mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix for FilterChildren function
This commit is contained in:
parent
2c628c8ab4
commit
41eb427c02
@ -184,7 +184,7 @@ def FilterChildren(queryset, parent):
|
|||||||
|
|
||||||
if not parent:
|
if not parent:
|
||||||
return queryset
|
return queryset
|
||||||
elif isinstance(parent, str) and parent.lower() in ['none', 'false', 'null', 'top', '0']:
|
elif str(parent).lower() in ['none', 'false', 'null', 'top', '0']:
|
||||||
return queryset.filter(parent=None)
|
return queryset.filter(parent=None)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user