Fakultas Ilmu Komputer UI

Commit 0dc12c6b authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

revert changes in vacancies

parent 164676a6
Pipeline #25268 passed with stages
in 5 minutes and 30 seconds
......@@ -117,12 +117,12 @@ class VacancyViewSet(MultiSerializerViewSetMixin, viewsets.ModelViewSet):
raise ValidationError("Amount must number only")
def responsibilities_validator(self, responsibilities):
if not isinstance(responsibilities, str):
if not isinstance(responsibilities, basestring):
raise ValidationError("Responsibilities must be string")
def recruiter_activity_validator(self, recruiter_activity):
enum_recruiter_activity = ['Selalu', 'Sering', 'Kadang', 'Jarang', 'Tidak Pernah']
if (not isinstance(recruiter_activity, str)) or (recruiter_activity not in enum_recruiter_activity):
if (not isinstance(recruiter_activity, basestring)) or (recruiter_activity not in enum_recruiter_activity):
raise ValidationError('Tingkat Respons Perekrut harus salah '
'satu dari Selalu, Sering, Kadang, '
'Jarang, dan Tidak Pernah!')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment