Fakultas Ilmu Komputer UI

Commit e1112196 authored by Kemas Khaidar Ali Indrakusuma's avatar Kemas Khaidar Ali Indrakusuma
Browse files

Merge branch '1606831035-104-hotfix' into 'master'

hotfix unresolved bug in issue 104

See merge request !209
parents bb755030 9d429081
Pipeline #26509 passed with stages
in 22 minutes and 7 seconds
......@@ -108,11 +108,15 @@ class VacancyViewSet(MultiSerializerViewSetMixin, viewsets.ModelViewSet):
return name
def salary_validator(self, salary):
if not isinstance(salary, int):
raise ValidationError("Salary must number only")
try:
int(salary)
except:
raise ValidationError("Salary must number only")
def amount_validator(self, amount):
if not isinstance(amount, int):
try:
int(amount)
except:
raise ValidationError("Amount must number only")
def responsibilities_validator(self, responsibilities):
......
Supports Markdown
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