diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2023-09-25 21:08:33 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2023-09-25 21:08:33 +0200 |
commit | 60d64abc9e0d517d042584bbea17bb34913ea406 (patch) | |
tree | 71c40e043991328cc5bf7b2f1f14cc8153af0bc1 /accounts/views.py | |
parent | check for files based on branca and not group (diff) | |
download | scout-subs-60d64abc9e0d517d042584bbea17bb34913ea406.tar.gz scout-subs-60d64abc9e0d517d042584bbea17bb34913ea406.zip |
fix not showing errors for date pickers
Diffstat (limited to 'accounts/views.py')
-rw-r--r-- | accounts/views.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/accounts/views.py b/accounts/views.py index dc53660..f04f495 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -573,7 +573,6 @@ def edit(request, code): if request.POST["tetanus_date"] == "" or request.POST["tetanus_date"].lower() == "01 gennaio 1970" or request.POST["tetanus_date"] == "None" or request.POST["tetanus_date"] == "Giovedì 01 Gennaio 1970 00:00": validation_dic["tetanus_date"] = 'class="datepicker validate invalid" required="" aria-required="true"' missing_fields = True - print("missing!!") else: validation_dic["tetanus_date"] = 'class="datepicker validate" required="" aria-required="true"' print("not missing") @@ -588,8 +587,6 @@ def edit(request, code): if missing_fields: errors.append("Alcuni campi richiesti non sono stati compilati") - print(validation_dic) - # check if user uploaded a file if "vac_certificate" in request.FILES: files = request.FILES.getlist('vac_certificate') |