From ba857dff388f7b8fedcc6d117a0abb3a1f0fefdf Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 3 Dec 2023 13:03:49 +0800 Subject: [PATCH] Add ID to equipment instance log serializer --- equipment_tracker/equipments/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/equipment_tracker/equipments/serializers.py b/equipment_tracker/equipments/serializers.py index 6e52763..00e9a13 100644 --- a/equipment_tracker/equipments/serializers.py +++ b/equipment_tracker/equipments/serializers.py @@ -47,7 +47,7 @@ class EquipmentLogsSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Equipment.history.model - fields = ('history_id', 'name', 'description', 'category', + fields = ('history_id', 'id', 'name', 'description', 'category', 'history_date', 'history_user') read_only_fields = ('history_id', 'id', 'name', 'description', 'history_date', 'history_user')