Fix for FilterChildren function

This commit is contained in:
Oliver Walters 2017-04-14 22:05:29 +10:00
parent 2c628c8ab4
commit 41eb427c02

View File

@ -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: