File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 99class ApplicantJobSerializer (serializers .Serializer ):
1010 job_id = serializers .UUIDField ()
1111 job_role = serializers .CharField ()
12+ slug = serializers .SlugField ()
13+
1214
1315
1416class ApplicantModelSerializer (serializers .Serializer ):
@@ -31,10 +33,6 @@ class UpdateApplicationStatusSerializer(serializers.Serializer):
3133 status = serializers .ChoiceField (choices = constants .STATUS_CHOICES , required = True )
3234
3335
34-
35-
36-
37-
3836class AppliedJobSerializer (serializers .ModelSerializer ):
3937 job = JobSerializer (read_only = True )
4038
@@ -47,7 +45,7 @@ class Meta:
4745 'updated_at' ,
4846 'is_deleted' ,
4947 'is_active' ,
50- 'status'
48+ 'status' ,
5149 ]
5250
5351
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ class GetAppliedJobs(APIView):
105105 permission_classes = [permissions .IsAuthenticated , IsProfileCompleted ]
106106
107107 @extend_schema (
108- responses = {200 : ApplicantModelSerializer (many = True )},
108+ responses = {200 : AppliedJobSerializer (many = True )},
109109 tags = ["applied_jobs" ]
110110 )
111111 def get (self , request ):
You can’t perform that action at this time.
0 commit comments