From 8c9be61551af62beba5c1f1e49bac33f7d76b522 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Fri, 23 Aug 2024 15:09:07 +0530 Subject: [PATCH] [chores] Made compatible with django-allauth~=0.63.0 --- tests/openwisp2/sample_users/migrations/0001_initial.py | 3 --- tests/openwisp2/settings.py | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/openwisp2/sample_users/migrations/0001_initial.py b/tests/openwisp2/sample_users/migrations/0001_initial.py index f80bd1f1..4e8fc20a 100644 --- a/tests/openwisp2/sample_users/migrations/0001_initial.py +++ b/tests/openwisp2/sample_users/migrations/0001_initial.py @@ -278,7 +278,6 @@ class Migration(migrations.Migration): options={ 'abstract': False, }, - bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.CreateModel( name='Group', @@ -344,7 +343,6 @@ class Migration(migrations.Migration): 'verbose_name_plural': 'organization users', 'unique_together': {('user', 'organization')}, }, - bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.AddField( model_name='organization', @@ -408,7 +406,6 @@ class Migration(migrations.Migration): 'verbose_name': 'organization owner', 'verbose_name_plural': 'organization owners', }, - bases=(organizations.base.UnicodeMixin, models.Model), ), migrations.AddField( model_name='user', diff --git a/tests/openwisp2/settings.py b/tests/openwisp2/settings.py index 99d4a60a..5e35e891 100644 --- a/tests/openwisp2/settings.py +++ b/tests/openwisp2/settings.py @@ -80,6 +80,7 @@ 'django.contrib.auth.middleware.AuthenticationMiddleware', 'sesame.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', + 'allauth.account.middleware.AccountMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'djangosaml2.middleware.SamlSessionMiddleware', ]