Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and 1vank1n committed May 13, 2024
1 parent 4dd200c commit cc3620f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions oauth2_provider/oauth2_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,7 @@ def get_or_create_user_from_content(self, content):
Returns an UserModel instance;
"""
user, _ = UserModel.objects.get_or_create(
**{UserModel.USERNAME_FIELD: content["username"]}
)
user, _ = UserModel.objects.get_or_create(**{UserModel.USERNAME_FIELD: content["username"]})
return user

def _get_token_from_authentication_server(
Expand Down

0 comments on commit cc3620f

Please sign in to comment.