From 2a8c89a1a6e39854b0e9d341db578215496b346c Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Mon, 16 Aug 2021 14:54:06 +0200 Subject: remove unused import and variables --- client/admin.py | 2 +- client/views.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'client') 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, -- cgit v1.2.1