Skip to content

Commit

Permalink
1.4.1 release (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
n2ygk committed Mar 12, 2021
1 parent 2555156 commit c0a9ac9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

### Removed
* Remove support for Python 3.5

## [1.4.1]

### Changed
* #925 OAuth2TokenMiddleware converted to new style middleware, and no longer extends MiddlewareMixin.

### Removed
* #936 Remove support for Python 3.5

## [1.4.0] 2021-02-08

### Added
Expand Down
7 changes: 1 addition & 6 deletions oauth2_provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,7 @@ def revoke(self):
access_token_model = get_access_token_model()
refresh_token_model = get_refresh_token_model()
with transaction.atomic():
try:
token = refresh_token_model.objects.select_for_update().filter(
pk=self.pk, revoked__isnull=True
)
except refresh_token_model.DoesNotExist:
return
token = refresh_token_model.objects.select_for_update().filter(pk=self.pk, revoked__isnull=True)
if not token:
return
self = list(token)[0]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-oauth-toolkit
version = 1.4.0
version = 1.4.1
description = OAuth2 Provider for Django
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down

0 comments on commit c0a9ac9

Please sign in to comment.