list of devices by admin filter mixin
This commit is contained in:
@@ -17,7 +17,10 @@ class DeviceSerializer(ModelSerializer):
|
||||
""" custom output of serializer """
|
||||
representation = super().to_representation(instance)
|
||||
|
||||
representation['organization'] = {'name': instance.organization.name}
|
||||
representation['organization'] = {
|
||||
'name': instance.organization.name,
|
||||
'id': instance.organization.id
|
||||
}
|
||||
|
||||
return representation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user