aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2022-08-07 14:38:20 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2022-08-07 14:38:20 +0200
commit4b974407b3ffe0c55e2d7a359346d2963b0d0fd1 (patch)
treed49b5ca4f16f765e8c0ca68f0c25c9c443971c87 /server/views.py
parentadd qr code to pdf approve, direct approval page (diff)
downloadscout-subs-4b974407b3ffe0c55e2d7a359346d2963b0d0fd1.tar.gz
scout-subs-4b974407b3ffe0c55e2d7a359346d2963b0d0fd1.zip
bar code scanner inside direct approve page
Diffstat (limited to '')
-rw-r--r--server/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/views.py b/server/views.py
index 2b45caa..56a05ec 100644
--- a/server/views.py
+++ b/server/views.py
@@ -337,6 +337,8 @@ def approve_direct(request):
doc_code = int(doc_code)
else:
doc_code = -1
+ else:
+ return render(request, 'server/approve_doc_direct.html', {"error": -1})
document = Document.objects.filter(code=doc_code)