aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/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 /accounts/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 'accounts/views.py')
-rw-r--r--accounts/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 06b3306..c42bc52 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -150,6 +150,7 @@ def personal(request):
usercode.home_phone = request.POST["home_phone"]
usercode.phone = request.POST["phone"]
usercode.school = request.POST["school"]
+ usercode.avs_number = request.POST["avs_number"]
if request.POST["year"].isdigit():
usercode.year = request.POST["year"]
else:
@@ -344,6 +345,7 @@ def personal(request):
'phone': usercode.phone,
'school': usercode.school,
'year': usercode.year,
+ 'avs_number': usercode.avs_number,
'branca_default': branca_default,
'branca_castorini': branca_castorini,
'branca_lupetti': branca_lupetti,