mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
Properly initialize middleware
This commit is contained in:
parent
bae4684bdf
commit
766771ab0f
1 changed files with 3 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ class UserAgreementMiddleware(MiddlewareMixin):
|
|||
Some middleware to check if users have agreed to the latest TOS
|
||||
"""
|
||||
|
||||
def __init__(self, get_response=None):
|
||||
self.get_response = get_response
|
||||
|
||||
def process_request(self, request):
|
||||
# Don't get in the way of any mutating requests
|
||||
if request.method != 'GET':
|
||||
|
|
|
|||
Loading…
Reference in a new issue