Fakultas Ilmu Komputer UI

Commit 3dd97633 authored by Muhammad Fauzan Fikri's avatar Muhammad Fauzan Fikri
Browse files

update serializer dengan menambah student_toefl

parent 3bd3be4b
Pipeline #26540 failed with stages
in 4 minutes and 54 seconds
......@@ -26,7 +26,7 @@ class StudentSerializer(serializers.ModelSerializer):
'work_experience', 'latest_work', 'latest_work_desc', 'read_no', 'volunteer', 'job_seeking_status',
'skills', 'expected_salary',
'self_description', 'github_url', 'gitlab_url', 'awards', 'certification', 'languages', 'seminar',
'interests', 'alamat', 'projects', 'dependants']
'interests', 'alamat', 'projects', 'dependants', 'student_toefl']
@staticmethod
def get_accepted_no(obj):
......@@ -66,6 +66,7 @@ class StudentUpdateSerializer(serializers.ModelSerializer):
'job_seeking_status': instance.job_seeking_status,
'website_url': instance.website_url,
'student_gpa': instance.student_gpa,
'student_toefl':instance.student_toefl,
'volunteer': instance.volunteer,
'linkedin_url': instance.linkedin_url,
'hackerrank_url': instance.hackerrank_url,
......@@ -118,6 +119,7 @@ class StudentUpdateSerializer(serializers.ModelSerializer):
'job_seeking_status', instance.job_seeking_status)
instance.student_gpa = validated_data.get(
'student_gpa', instance.student_gpa)
instance.student_toefl = validated_data.get('student_toefl', instance.student_toefl)
instance.website_url = validated_data.get(
'website_url', instance.website_url)
instance.skills = validated_data.get('skills', instance.skills)
......@@ -155,7 +157,7 @@ class StudentUpdateSerializer(serializers.ModelSerializer):
'work_experience', 'latest_work', 'latest_work_desc', 'volunteer', 'job_seeking_status', 'skills',
'expected_salary',
'self_description', 'github_url', 'gitlab_url', 'awards', 'certification', 'languages', 'seminar',
'interests', 'alamat', 'projects', 'dependants']
'interests', 'alamat', 'projects', 'dependants', 'student_toefl']
class CompanyUpdateSerializer(serializers.ModelSerializer):
......
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