Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions rest_framework_digestauth/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
from rest_framework_digestauth.utils import parse_dict_header


User = get_user_model()

backend_path = getattr(
settings,
'DIGESTAUTH_BACKEND',
Expand Down Expand Up @@ -104,6 +102,7 @@ def check_authorization_request_header(self):
raise exceptions.ParseError('%s provided without qop' % c)

def get_user(self):
User = get_user_model()
username = self.auth_header['username']
try:
username_field = 'username'
Expand Down