add: add unit_price field to InventoryListSerializer
This commit is contained in:
@@ -10,7 +10,7 @@ class InventoryListSerializer(serializers.ModelSerializer):
|
|||||||
class Meta:
|
class Meta:
|
||||||
model = Inventory
|
model = Inventory
|
||||||
fields = [
|
fields = [
|
||||||
'id', 'quantity', 'product', 'price', 'unity'
|
'id', 'quantity', 'product', 'price', 'unity', 'unit_price'
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_product(self, obj):
|
def get_product(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user