Skip to content

Commit

Permalink
fix allauth drop of 3.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tfranzel committed Nov 20, 2023
1 parent c9d2f89 commit 29884fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions requirements/optionals.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
django-allauth>=0.56.0
django-allauth>=0.56.0; python_version >= '3.7'
django-allauth<0.55.0; python_version < '3.7'
drf-jwt>=0.13.0
dj-rest-auth>=5.0.2
dj-rest-auth>=1.0.0
djangorestframework-simplejwt>=4.4.0
django-polymorphic>=2.1
django-rest-polymorphic>=0.1.8
Expand Down
7 changes: 6 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def pytest_configure(config):
if is_gis_installed():
contrib_apps.append('rest_framework_gis')

contrib_middleware = []

if module_available('allauth.account.middleware'):
contrib_middleware.append('allauth.account.middleware.AccountMiddleware')

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

settings.configure(
Expand Down Expand Up @@ -70,7 +75,7 @@ def pytest_configure(config):
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.locale.LocaleMiddleware',
'allauth.account.middleware.AccountMiddleware',
*contrib_middleware,
),
INSTALLED_APPS=(
'django.contrib.auth',
Expand Down

0 comments on commit 29884fe

Please sign in to comment.