add device-identity to stakeholder serializer

This commit is contained in:
2025-10-25 10:40:24 +03:30
parent 2e50b49a97
commit afbb3fbd1a
2 changed files with 3 additions and 22 deletions

View File

@@ -85,6 +85,8 @@ class StakeHoldersSerializer(ModelSerializer):
instance.organization.bank_information.all().first()
).data
representation['device'] = instance.device.device_identity
representation['organization'] = {
'name': instance.organization.name,
'id': instance.organization.id