From a8150618f1f91f786196208b344ff6a6561e2f69 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 20 Dec 2024 13:11:15 +0200 Subject: [PATCH] Deleted repetitive representative functional admin profiles serializer --- BackEnd/administration/serializers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BackEnd/administration/serializers.py b/BackEnd/administration/serializers.py index 0d934792..37fdf22c 100644 --- a/BackEnd/administration/serializers.py +++ b/BackEnd/administration/serializers.py @@ -121,7 +121,7 @@ class AdminCompanyListSerializer(serializers.ModelSerializer): regions = AdminRegionSerializer(many=True, read_only=True) company_type = serializers.SerializerMethodField(read_only=True) activities = ActivitiesSerializer(many=True, read_only=True) - representative = serializers.SerializerMethodField(read_only=True) + representative = serializers.CharField(read_only=True) business_entity = serializers.SerializerMethodField(read_only=True) class Meta: @@ -149,9 +149,6 @@ class Meta: def get_company_type(self, obj) -> str: return format_company_type(obj) - def get_representative(self, obj) -> str: - return format_representative(obj) - def get_business_entity(self, obj) -> str: return format_business_entity(obj)