From 8cb645eb1125db9887360d32d9440a9ca8a1ae4d Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sun, 20 Jun 2021 12:29:39 +0200 Subject: add avs number to form --- accounts/templates/accounts/index.html | 6 +++++- accounts/views.py | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'accounts') diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index 34b2da1..1473834 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -49,10 +49,14 @@ -
+
+
+ + +
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, -- cgit v1.2.1