Skip to content

Commit

Permalink
Merge pull request #128 from tell-k/fix-setup-auth-class
Browse files Browse the repository at this point in the history
Do not insert  WebtestAuthentication to the head of DEFAULT_AUTHENTICATION_CLASSES.
  • Loading branch information
gawel committed Aug 21, 2023
2 parents 28689aa + 93cb162 commit 0bfd420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_webtest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _setup_auth_class(self):
if class_name not in classes:
if isinstance(classes, tuple):
classes = list(classes)
classes.insert(0, class_name)
classes.append(class_name)
drf_settings['DEFAULT_AUTHENTICATION_CLASSES'] = classes

@property
Expand Down

0 comments on commit 0bfd420

Please sign in to comment.