Skip to content

Commit

Permalink
chore: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudSheraz committed Mar 8, 2024
1 parent 3258662 commit dc683c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions edxval/pacts/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class AuthenticationMiddleware(MiddlewareMixin):
See https://docs.pact.io/faq#how-do-i-test-oauth-or-other-security-headers
"""

# TODO: passing None to get_response will be deprecated with Django4
def __init__(self, get_response=None):
def __init__(self, get_response): # pylint: disable=no-value-for-parameter
super().__init__()
self.auth_user = User.objects.get_or_create(username='edx', is_staff=True)[0]
self.auth_user.user_permissions.set(Permission.objects.filter(content_type__app_label='edxval'))
Expand Down

0 comments on commit dc683c9

Please sign in to comment.