change structure of provider companies to organizations

This commit is contained in:
2025-08-10 12:35:52 +03:30
parent a28a1307cc
commit f9be8cf58d

View File

@@ -17,7 +17,7 @@ class DeviceSerializer(ModelSerializer):
""" custom output of serializer """
representation = super().to_representation(instance)
representation['company'] = {'name': instance.company.name_fa}
representation['organization'] = {'name': instance.organization.name}
return representation