2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 03:30:54 +00:00

Add function makeIconBadge for tables

- Add filters for part variants table
This commit is contained in:
Oliver Walters
2020-10-29 13:18:45 +11:00
parent b3ac261746
commit 8246e9c802
11 changed files with 593 additions and 436 deletions

View File

@ -461,8 +461,8 @@ class PartList(generics.ListCreateAPIView):
else:
queryset = queryset.exclude(pk__in=starred_parts)
# Cascade?
cascade = str2bool(params.get('cascade', None))
# Cascade? (Default = True)
cascade = str2bool(params.get('cascade', True))
# Does the user wish to filter by category?
cat_id = params.get('category', None)