aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2021-08-16 14:54:06 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2021-08-16 14:54:31 +0200
commit2a8c89a1a6e39854b0e9d341db578215496b346c (patch)
treef372355234df812e150406be4a95ce5513af0ca0 /client
parentfix RO documents visible for non group capi (diff)
downloadscout-subs-2a8c89a1a6e39854b0e9d341db578215496b346c.tar.gz
scout-subs-2a8c89a1a6e39854b0e9d341db578215496b346c.zip
remove unused import and variables
Diffstat (limited to '')
-rw-r--r--client/admin.py2
-rw-r--r--client/views.py5
2 files changed, 2 insertions, 5 deletions
diff --git a/client/admin.py b/client/admin.py
index 8c38f3f..5538909 100644
--- a/client/admin.py
+++ b/client/admin.py
@@ -1,3 +1,3 @@
-from django.contrib import admin
+#from django.contrib import admin
# Register your models here.
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,