aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2021-12-26 21:14:34 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2021-12-26 21:14:46 +0100
commit536ec9fbca0a3ebc082dd98bf575bbef2949e94e (patch)
treec9fdd9852506a650c6ddecc586ccc14a3bce1ea2
parentfix wrong filter on doctypes on server index (diff)
downloadscout-subs-536ec9fbca0a3ebc082dd98bf575bbef2949e94e.tar.gz
scout-subs-536ec9fbca0a3ebc082dd98bf575bbef2949e94e.zip
remove unused variables/imports
Diffstat (limited to '')
-rw-r--r--accounts/urls.py2
-rw-r--r--server/views.py3
-rw-r--r--version.txt2
3 files changed, 2 insertions, 5 deletions
diff --git a/accounts/urls.py b/accounts/urls.py
index 6a44457..371c731 100644
--- a/accounts/urls.py
+++ b/accounts/urls.py
@@ -1,4 +1,4 @@
-from django.urls import path, include
+from django.urls import path
from . import views
diff --git a/server/views.py b/server/views.py
index f50ae61..78be0b2 100644
--- a/server/views.py
+++ b/server/views.py
@@ -11,7 +11,6 @@ from django.template.loader import get_template
from django.conf import settings
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import user_passes_test
-from django.contrib.contenttypes.models import ContentType
from django.contrib.sessions.backends.db import SessionStore
import csv
@@ -330,8 +329,6 @@ def doctype(request):
1:]
if request.method == "POST":
- selected = []
-
# check if request to edit
if request.POST["action"][0] == 'e':
document_type = DocumentType.objects.get(id=request.POST["action"][1:])
diff --git a/version.txt b/version.txt
index 571dffe..dd1392a 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.4
-rev=5
+rev=6