Skip to content

Commit fa5c926

Browse files
authored
Merge pull request #349 from python-social-auth/release/5.0.0
2 parents a0c8a54 + b368f8e commit fa5c926

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## [Unreleased](https://github.com/python-social-auth/social-app-django/)
8+
## [5.0.0](https://github.com/python-social-auth/social-app-django/releases/tag/5.0.0) - 2021-08-05
99

1010
### Changed
1111
- Removed compat shims for obsolete Django versions
@@ -14,6 +14,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1414
- Added testing for Django 3.0
1515
- Drop support for Python 2
1616
- Django generic `JSONField` support, details documented [here](https://python-social-auth.readthedocs.io/en/latest/configuration/django.html#json-field-support)
17+
- Django 3.2+ compatibility
18+
- Use `_default_manager` instead of `objects`
1719

1820
## [4.0.0](https://github.com/python-social-auth/social-app-django/releases/tag/4.0.0) - 2020-06-20
1921

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
social-auth-core >= 4.0.2
1+
social-auth-core >= 4.1.0

social_django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '4.0.0'
1+
__version__ = '5.0.0'
22

33

44
import django

social_django/utils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
from django.conf import settings
44
from django.http import Http404
5+
from django.urls import reverse
56

67
from social_core.utils import setting_name, module_member, get_strategy
78
from social_core.exceptions import MissingBackend
8-
from social_core.backends.utils import get_backend
9-
from django.urls import reverse
109

1110

1211
STRATEGY = getattr(settings, setting_name('STRATEGY'),
@@ -22,8 +21,7 @@ def load_strategy(request=None):
2221

2322

2423
def load_backend(strategy, name, redirect_uri):
25-
Backend = get_backend(settings.AUTHENTICATION_BACKENDS, name)
26-
return Backend(strategy, redirect_uri)
24+
return strategy.get_backend(name, redirect_uri=redirect_uri)
2725

2826

2927
def psa(redirect_uri=None, load_strategy=load_strategy):
@@ -41,7 +39,8 @@ def wrapper(request, backend, *args, **kwargs):
4139

4240
try:
4341
request.backend = load_backend(request.social_strategy,
44-
backend, uri)
42+
backend,
43+
redirect_uri=uri)
4544
except MissingBackend:
4645
raise Http404('Backend not found')
4746
return func(request, backend, *args, **kwargs)

0 commit comments

Comments
 (0)