Leave comment about LoginRequiredMiddleware

This commit is contained in:
Klaas van Schelven
2025-09-11 08:41:54 +02:00
parent 63c54b2107
commit 5bdfe89a6a

View File

@@ -34,6 +34,9 @@ class DisallowChunkedMiddleware:
class LoginRequiredMiddleware:
# NOTE: this predates Django 5.1's built-in LoginRequiredMiddleware; we may want to switch to that at some point,
# but for now we have something that works and there's no real upside so we'll leave it as is.
def __init__(self, get_response):
self.get_response = get_response