Add more API filters
This commit is contained in:
parent
bf0a77f8a0
commit
a02870c6ef
|
|
@ -291,7 +291,7 @@ class CategoryTreeFilter(FilterSet):
|
|||
"""Metaclass options for this filterset."""
|
||||
|
||||
model = PartCategory
|
||||
fields = ['level']
|
||||
fields = ['parent', 'tree_id', 'level']
|
||||
|
||||
max_level = rest_filters.NumberFilter(
|
||||
label=_('Max Level'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue