Skip to content

Commit 9b6877b

Browse files
committed
Fix a bug where the new setting wasn't getting read, bump version
1 parent 4b605fb commit 9b6877b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ When the CSRF validation token doesn't match, django-admin-oauth2 will redirect
8484

8585

8686
## Changelog
87+
* 1.1.1: Fix a bug where the new setting wasn't getting read
8788
* 1.1.0: Add new setting: OAUTHADMIN_DEFAULT_NEXT_URL
8889
* 1.0.2: Support python3
8990
* 1.0.1: Send redirect URI when exchanging grant code for auth token

oauthadmin/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def callback(request):
8585

8686
next = json.loads(base64.b64decode(request.session['oauth_state']).decode('utf-8'))['next']
8787
if not next:
88-
next = app_setting('OAUTHADMIN_DEFAULT_NEXT_URL')
88+
next = app_setting('DEFAULT_NEXT_URL')
8989

9090
return redirect(request.build_absolute_uri(next))
9191

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
setup(
1919
name='django-admin-oauth2',
20-
version='1.1.0',
20+
version='1.1.1',
2121
description='A django app that replaces the django admin authentication mechanism by deferring to an oauth2 provider',
2222
long_description=README,
2323
url='https://github.com/RealGeeks/django-admin-oauth2',

0 commit comments

Comments
 (0)