Features: 1) Add "level" and "order_by" fields to Category filter;

Fixes: None;

Extra: None;
This commit is contained in:
Egor Pavlovich Gorbunov 2025-06-16 19:03:30 +03:00
parent 5c27c5d5bb
commit fa588b59ae

View file

@ -335,7 +335,7 @@ class CategoryFilter(FilterSet):
class Meta:
model = Category
fields = ["uuid", "name", "parent_uuid", "slug", "tags"]
fields = ["uuid", "name", "parent_uuid", "slug", "tags", "level", "order_by"]
def filter_parent_uuid(self, queryset, _name, value):
if value in ("", "null", "None"):