add broker object to stake holder serializer
This commit is contained in:
@@ -93,6 +93,12 @@ class StakeHoldersSerializer(ModelSerializer):
|
||||
'id': instance.organization.id
|
||||
}
|
||||
|
||||
if instance.broker:
|
||||
representation['broker'] = {
|
||||
'name': instance.broker.name,
|
||||
'id': instance.broker.id
|
||||
}
|
||||
|
||||
return representation
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user