mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 09:25:21 +00:00
Enable Part API to filter by active status
This commit is contained in:
1 parent
495d414d54
commit
1a66a12d57
2 files changed
+3
No files matched your search
@@ -130,11 +130,13 @@ class PartList(generics.ListCreateAPIView):
|
||||
]
|
||||
|
||||
filter_fields = [
|
||||
'category',
|
||||
'buildable',
|
||||
'consumable',
|
||||
'trackable',
|
||||
'purchaseable',
|
||||
'salable',
|
||||
'active',
|
||||
]
|
||||
|
||||
ordering_fields = [
|
||||
|
||||
@@ -70,6 +70,7 @@ class PartSerializer(serializers.ModelSerializer):
|
||||
'consumable',
|
||||
'trackable',
|
||||
'salable',
|
||||
'active',
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user