add device-identity to stakeholder serializer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user