Add remarks to transaction serializer

This commit is contained in:
Keannu Bernasol 2023-12-27 16:50:52 +08:00
parent 02df5b5ea9
commit 94ba018c9e

View file

@ -39,7 +39,7 @@ class TransactionSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Transaction
fields = ['id', 'borrower', 'teacher',
'equipments', 'transaction_status', 'timestamp']
'equipments', 'remarks', 'transaction_status', 'timestamp']
read_only_fields = ['id', 'timestamp']
def to_representation(self, instance):