From f9be8cf58d554ddb7d040c2795f8f643db9a5f73 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sun, 10 Aug 2025 12:35:52 +0330 Subject: [PATCH] change structure of provider companies to organizations --- apps/pos_device/web/api/v1/serilaizers/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pos_device/web/api/v1/serilaizers/device.py b/apps/pos_device/web/api/v1/serilaizers/device.py index 7f8d1d9..e28c291 100644 --- a/apps/pos_device/web/api/v1/serilaizers/device.py +++ b/apps/pos_device/web/api/v1/serilaizers/device.py @@ -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