diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 23:04:11 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-01-30 23:04:11 +0000 |
commit | 3aca0d0c76364c8f9fa3fec43370f54f8270b43f (patch) | |
tree | 135ded90255f67bc00bb2c78a832f4328d05c6d9 /core/middleware.py | |
parent | e35fccea5d52bd9f64820335a7bf1dbd38e6157e (diff) | |
download | troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.tar.gz troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.tar.bz2 troggle-3aca0d0c76364c8f9fa3fec43370f54f8270b43f.zip |
ruf cleanup imports, bigly.
Diffstat (limited to 'core/middleware.py')
-rw-r--r-- | core/middleware.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/middleware.py b/core/middleware.py index 54cdb11..686d7d5 100644 --- a/core/middleware.py +++ b/core/middleware.py @@ -1,6 +1,6 @@ from django import http from django.conf import settings -from django.urls import Resolver404, resolve, reverse +from django.urls import Resolver404, resolve """Non-standard django middleware is loaded from this file. @@ -66,7 +66,7 @@ class SmartAppendSlashMiddleware(object): def _resolves(url): try: # If the URL does not resolve, the function raises a Resolver404 exception (a subclass of Http404) - match = resolve(url) + resolve(url) # this will ALWAYS be resolved by expopages because it will produce pagenotfound if not the thing asked for # so handle this in expopages, not in middleware return True |