From dc6b835ca8b5a6f9f378b684652307e0075e29d1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 20 Dec 2024 14:56:56 +0200 Subject: [PATCH] Deleted unuseful fields admin profiles serializer --- BackEnd/administration/serializers.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/BackEnd/administration/serializers.py b/BackEnd/administration/serializers.py index 37fdf22c..23f11878 100644 --- a/BackEnd/administration/serializers.py +++ b/BackEnd/administration/serializers.py @@ -118,7 +118,6 @@ def get_company_name(self, obj) -> bool: class AdminCompanyListSerializer(serializers.ModelSerializer): person = AdminUserDetailSerializer(read_only=True) - regions = AdminRegionSerializer(many=True, read_only=True) company_type = serializers.SerializerMethodField(read_only=True) activities = ActivitiesSerializer(many=True, read_only=True) representative = serializers.CharField(read_only=True) @@ -129,13 +128,9 @@ class Meta: fields = ( "id", "name", - "is_registered", "person", - "person_position", - "regions", "business_entity", "phone", - "edrpou", "address", "status", "updated_at",