aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2021-06-20 12:29:39 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2021-06-20 12:29:56 +0200
commit8cb645eb1125db9887360d32d9440a9ca8a1ae4d (patch)
tree5f2788f6e8cc91ec3ba9add930616132af707499 /client/views.py
parentadd rev to version and create document from non primary group (diff)
downloadscout-subs-8cb645eb1125db9887360d32d9440a9ca8a1ae4d.tar.gz
scout-subs-8cb645eb1125db9887360d32d9440a9ca8a1ae4d.zip
add avs number to form
Diffstat (limited to '')
-rw-r--r--client/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/views.py b/client/views.py
index 32678f5..6f8efb3 100644
--- a/client/views.py
+++ b/client/views.py
@@ -221,7 +221,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, school=usercode.school, year=usercode.year)
+ nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone, school=usercode.school, year=usercode.year, avs_number=usercode.avs_number)
personal_data.save()
if document_type.medical_data:
@@ -281,7 +281,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, school=usercode.school, year=usercode.year)
+ nationality=usercode.nationality, born_date=usercode.born_date, home_phone=usercode.home_phone, phone=usercode.phone, school=usercode.school, year=usercode.year, avs_number=usercode.avs_number)
personal_data.save()
old_data = document.personal_data
document.personal_data = personal_data