Rejiggering for more pycodestyle issues...

This commit is contained in:
Matt
2018-02-08 09:01:10 -05:00
parent 151d85f2be
commit 4bde14368c
2 changed files with 14 additions and 7 deletions

View File

@@ -1,14 +1,14 @@
from django.utils.deprecation import MiddlewareMixin
from .models import User
class Middleware (MiddlewareMixin):
"""
This is a dummy authentication middleware class that creates what
is roughly an Anonymous authenticated user so we can disable login
and not interfere with existing user ID's. It's only used if
and not interfere with existing user ID's. It's only used if
login is disabled in paperless.conf (default is to require login)
"""
def process_request(self, request):
request.user = User()