mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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…
x
Reference in New Issue
Block a user