Skip to content

Commit 143e676

Browse files
Merge pull request #152 from null-open-security-community/main
Add slug
2 parents cecb5c2 + 13d863f commit 143e676

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

apps/applicants/serializers.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
class ApplicantJobSerializer(serializers.Serializer):
1010
job_id = serializers.UUIDField()
1111
job_role = serializers.CharField()
12+
slug = serializers.SlugField()
13+
1214

1315

1416
class 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-
3836
class 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

apps/applicants/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)