Add ID to equipment instance log serializer

This commit is contained in:
Keannu Bernasol 2023-12-03 13:03:49 +08:00
parent 8a38392534
commit ba857dff38

View file

@ -47,7 +47,7 @@ class EquipmentLogsSerializer(serializers.HyperlinkedModelSerializer):
class Meta: class Meta:
model = Equipment.history.model model = Equipment.history.model
fields = ('history_id', 'name', 'description', 'category', fields = ('history_id', 'id', 'name', 'description', 'category',
'history_date', 'history_user') 'history_date', 'history_user')
read_only_fields = ('history_id', 'id', 'name', 'description', read_only_fields = ('history_id', 'id', 'name', 'description',
'history_date', 'history_user') 'history_date', 'history_user')