food inherit tests

This commit is contained in:
smilerz
2021-11-04 16:00:45 -05:00
parent 6c0e979909
commit b92c027919
5 changed files with 202 additions and 21 deletions

View File

@ -225,6 +225,7 @@ class TreeMixin(MergeMixin, FuzzyFilterMixin):
root = int(root)
except ValueError:
self.queryset = self.model.objects.none()
if root == 0:
self.queryset = self.model.get_root_nodes()
else: