mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Enable Part API to filter by active status
This commit is contained in:
parent
495d414d54
commit
1a66a12d57
@ -130,11 +130,13 @@ class PartList(generics.ListCreateAPIView):
|
|||||||
]
|
]
|
||||||
|
|
||||||
filter_fields = [
|
filter_fields = [
|
||||||
|
'category',
|
||||||
'buildable',
|
'buildable',
|
||||||
'consumable',
|
'consumable',
|
||||||
'trackable',
|
'trackable',
|
||||||
'purchaseable',
|
'purchaseable',
|
||||||
'salable',
|
'salable',
|
||||||
|
'active',
|
||||||
]
|
]
|
||||||
|
|
||||||
ordering_fields = [
|
ordering_fields = [
|
||||||
|
@ -70,6 +70,7 @@ class PartSerializer(serializers.ModelSerializer):
|
|||||||
'consumable',
|
'consumable',
|
||||||
'trackable',
|
'trackable',
|
||||||
'salable',
|
'salable',
|
||||||
|
'active',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user