From 6c3afd21b948f8adfa8d1c72b9c2f0fb8c6a11b1 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 8 Jul 2018 16:07:10 +0100 Subject: [PATCH] Code cleanup --- src/documents/forms.py | 1 - src/paperless/middleware.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/documents/forms.py b/src/documents/forms.py index 5f965a1c6..3cdef448e 100644 --- a/src/documents/forms.py +++ b/src/documents/forms.py @@ -8,7 +8,6 @@ from django import forms from django.conf import settings from .models import Document, Correspondent -from .consumer import Consumer class UploadForm(forms.Form): diff --git a/src/paperless/middleware.py b/src/paperless/middleware.py index 8fed7da8f..58cdad65c 100644 --- a/src/paperless/middleware.py +++ b/src/paperless/middleware.py @@ -2,7 +2,7 @@ from django.utils.deprecation import MiddlewareMixin from .models import User -class Middleware (MiddlewareMixin): +class Middleware(MiddlewareMixin): """ This is a dummy authentication middleware class that creates what is roughly an Anonymous authenticated user so we can disable login