change structure of provider companies to organizations
This commit is contained in:
@@ -17,7 +17,7 @@ class DeviceSerializer(ModelSerializer):
|
|||||||
""" custom output of serializer """
|
""" custom output of serializer """
|
||||||
representation = super().to_representation(instance)
|
representation = super().to_representation(instance)
|
||||||
|
|
||||||
representation['company'] = {'name': instance.company.name_fa}
|
representation['organization'] = {'name': instance.organization.name}
|
||||||
|
|
||||||
return representation
|
return representation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user