From 225e22747c735a3d8a45750c2c1b1086542f8e33 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 27 Apr 2020 18:22:51 +0200 Subject: [PATCH 2/2] tests_authentic: adapt to evolutions in authentic2 (#42154) * django-filters>=2 is now usable with authentic, for py2 run it must be explicitely limited to django-filter<2. * settings must use MIDDLEWARE instead of MIDDLEWARE_CLASSES --- tests_authentic/settings.py | 2 +- tox.ini | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git tests_authentic/settings.py tests_authentic/settings.py index c51e0d4..c6d8faa 100644 --- tests_authentic/settings.py +++ tests_authentic/settings.py @@ -25,7 +25,7 @@ TENANT_BASE = '/that/path/does/not/exist' # Add the XForwardedForMiddleware -MIDDLEWARE_CLASSES = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE_CLASSES +MIDDLEWARE = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE # Add authentic settings loader TENANT_SETTINGS_LOADERS = ('hobo.multitenant.settings_loaders.Authentic',) + TENANT_SETTINGS_LOADERS diff --git tox.ini tox.ini index f5906ac..aa1b08b 100644 --- tox.ini +++ tox.ini @@ -40,6 +40,7 @@ deps: Markdown<3 django-tables2<2.0 authentic: http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz + py2-authentic: django-filter<2 passerelle: http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz py2-passerelle: suds passerelle: python-memcached -- 2.26.0