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 = [
|
||||
'category',
|
||||
'buildable',
|
||||
'consumable',
|
||||
'trackable',
|
||||
'purchaseable',
|
||||
'salable',
|
||||
'active',
|
||||
]
|
||||
|
||||
ordering_fields = [
|
||||
|
@ -70,6 +70,7 @@ class PartSerializer(serializers.ModelSerializer):
|
||||
'consumable',
|
||||
'trackable',
|
||||
'salable',
|
||||
'active',
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user