diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2021-08-16 14:54:06 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2021-08-16 14:54:31 +0200 |
commit | 2a8c89a1a6e39854b0e9d341db578215496b346c (patch) | |
tree | f372355234df812e150406be4a95ce5513af0ca0 /client/views.py | |
parent | fix RO documents visible for non group capi (diff) | |
download | scout-subs-2a8c89a1a6e39854b0e9d341db578215496b346c.tar.gz scout-subs-2a8c89a1a6e39854b0e9d341db578215496b346c.zip |
remove unused import and variables
Diffstat (limited to 'client/views.py')
-rw-r--r-- | client/views.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/views.py b/client/views.py index d18c074..4b8b11d 100644 --- a/client/views.py +++ b/client/views.py @@ -1,8 +1,7 @@ from random import randint -from django.contrib.auth.models import Group, Permission, User from client.models import GroupSettings, UserCode, Keys, DocumentType, Document, PersonalData, KeyVal, MedicalData from django.db.models import Q -from django.http import HttpResponseRedirect, FileResponse, HttpResponse +from django.http import HttpResponseRedirect, FileResponse from django.contrib.auth.decorators import login_required from django.shortcuts import render @@ -10,7 +9,6 @@ from django.shortcuts import render from django.template.loader import get_template from io import BytesIO import pdfkit -import base64 from subprocess import check_output from datetime import datetime import pytz @@ -231,7 +229,6 @@ def create(request): if document_type.auto_sign: status = "autosign" - keys = [] # 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, |