diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-09-03 18:28:54 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-09-03 18:28:54 +0200 |
commit | e4f1aba7025e2752b6e1a0aeb9584044184ddefe (patch) | |
tree | 28d95c4212d4dce94db3579b0b3fad51013f2db7 /client/views.py | |
parent | better wording, simpler approve page (diff) | |
download | scout-subs-e4f1aba7025e2752b6e1a0aeb9584044184ddefe.tar.gz scout-subs-e4f1aba7025e2752b6e1a0aeb9584044184ddefe.zip |
add missing field to personal data
Diffstat (limited to 'client/views.py')
-rw-r--r-- | client/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/views.py b/client/views.py index a0143a2..4bc7e0e 100644 --- a/client/views.py +++ b/client/views.py @@ -196,7 +196,7 @@ def create(request): # copy personal data and medical data if document_type.personal_data: personal_data = PersonalData(email=request.user.email, parent_name=usercode.parent_name, via=usercode.via, cap=usercode.cap, country=usercode.country, - nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone) + nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone, school=usercode.school, year=usercode.year) personal_data.save() if document_type.medical_data: @@ -252,7 +252,7 @@ def edit_wrapper(request, context): if document.document_type.personal_data: personal_data = PersonalData(email=request.user.email, parent_name=usercode.parent_name, via=usercode.via, cap=usercode.cap, country=usercode.country, - nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone) + nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone, school=usercode.school, year=usercode.year) personal_data.save() old_data = document.personal_data document.personal_data = personal_data |