Skip to content

Commit

Permalink
Merge pull request #151 from YogeshUpdhyay/main
Browse files Browse the repository at this point in the history
Add slug in applicant serializer
  • Loading branch information
YogeshUpdhyay authored Jan 13, 2025
2 parents f658cb2 + 0e3c715 commit 13d863f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions apps/applicants/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
class ApplicantJobSerializer(serializers.Serializer):
job_id = serializers.UUIDField()
job_role = serializers.CharField()
slug = serializers.SlugField()



class ApplicantModelSerializer(serializers.Serializer):
Expand All @@ -31,10 +33,6 @@ class UpdateApplicationStatusSerializer(serializers.Serializer):
status = serializers.ChoiceField(choices=constants.STATUS_CHOICES, required=True)






class AppliedJobSerializer(serializers.ModelSerializer):
job = JobSerializer(read_only=True)

Expand All @@ -47,7 +45,7 @@ class Meta:
'updated_at',
'is_deleted',
'is_active',
'status'
'status',
]


Expand Down
2 changes: 1 addition & 1 deletion apps/applicants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class GetAppliedJobs(APIView):
permission_classes = [permissions.IsAuthenticated, IsProfileCompleted]

@extend_schema(
responses={200: ApplicantModelSerializer(many=True)},
responses={200: AppliedJobSerializer(many=True)},
tags=["applied_jobs"]
)
def get(self, request):
Expand Down

0 comments on commit 13d863f

Please sign in to comment.