Projet

Général

Profil

0002-tests_authentic-adapt-to-evolutions-in-authentic2-42.patch

Benjamin Dauvergne, 27 avril 2020 18:23

Télécharger (1,49 ko)

Voir les différences:

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(-)
tests_authentic/settings.py
25 25

  
26 26

  
27 27
# Add the XForwardedForMiddleware
28
MIDDLEWARE_CLASSES = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE_CLASSES
28
MIDDLEWARE = ('authentic2.middleware.XForwardedForMiddleware',) + MIDDLEWARE
29 29

  
30 30
# Add authentic settings loader
31 31
TENANT_SETTINGS_LOADERS = ('hobo.multitenant.settings_loaders.Authentic',) + TENANT_SETTINGS_LOADERS
tox.ini
40 40
	Markdown<3
41 41
	django-tables2<2.0
42 42
	authentic: http://git.entrouvert.org/authentic.git/snapshot/authentic-master.tar.gz
43
	py2-authentic: django-filter<2
43 44
	passerelle: http://git.entrouvert.org/passerelle.git/snapshot/passerelle-master.tar.gz
44 45
	py2-passerelle: suds
45 46
	passerelle: python-memcached
46
-