Skip to content

Commit

Permalink
Deleted repetitive representative functional admin profiles serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSychev2005 committed Dec 20, 2024
1 parent 2ca7879 commit a815061
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions BackEnd/administration/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit a815061

Please sign in to comment.