From 1757538db144864ff11c29d2806774735fc92692 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Wed, 3 Jan 2024 17:31:08 +0800 Subject: [PATCH] Add status field in equipments for transaction serializer --- equipment_tracker/transactions/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equipment_tracker/transactions/serializers.py b/equipment_tracker/transactions/serializers.py index cf1709a..cb2633a 100644 --- a/equipment_tracker/transactions/serializers.py +++ b/equipment_tracker/transactions/serializers.py @@ -21,7 +21,7 @@ class EquipmentInstanceSerializer(serializers.ModelSerializer): class Meta: model = EquipmentInstance - fields = ['id', 'name'] + fields = ['id', 'name', 'status'] class TransactionSerializer(serializers.HyperlinkedModelSerializer):