diff --git a/CHANGES b/CHANGES index c77782c..92dd614 100644 --- a/CHANGES +++ b/CHANGES @@ -1,9 +1,10 @@ Version History =============== -Version 0.8.4 (unreleased) --------------------------- -* Fix `ROSETTA_REQUIRES_AUTH = False` wasn't respected (#203, BarnabasSzabolcs) +Version 0.9.0 +------------- +* Fix `ROSETTA_REQUIRES_AUTH = False` wasn't respected (#203, @BarnabasSzabolcs) +* Django-rosetta now requires Django 1.11 or newer. Rosetta 0.8.3 is the last version to support Django 1.8 through 1.10. (#204, thanks @claudep) Version 0.8.3 diff --git a/README.rst b/README.rst index f32c7a6..6ee4bf1 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ Rosetta is a `Django `_ application that eases th Because it doesn't export any models, Rosetta doesn't create any tables in your project's database. Rosetta can be installed and uninstalled by simply adding and removing a single entry in your project's `INSTALLED_APPS` and a single line in your main ``urls.py`` file. -Note: as of version 0.7.13 django-rosetta requires Django 1.8 or later. +Note: as of version 0.7.13 django-rosetta requires Django 1.8 or later. As of version 0.9.0, django-rosetta requires Django 1.11 or later. ******** Features diff --git a/rosetta/__init__.py b/rosetta/__init__.py index 4bb98b9..d5b7b4b 100644 --- a/rosetta/__init__.py +++ b/rosetta/__init__.py @@ -1,4 +1,4 @@ -VERSION = (0, 8, 4) +VERSION = (0, 9, 0) default_app_config = "rosetta.apps.RosettaAppConfig" diff --git a/rosetta/tests/tests.py b/rosetta/tests/tests.py index c1f0397..c3ff729 100644 --- a/rosetta/tests/tests.py +++ b/rosetta/tests/tests.py @@ -458,7 +458,7 @@ class RosettaTestCase(TestCase): # (Have to log in again, since our session engine changed) self.client.login(username='test_admin', password='test_password') self.assertTrue('django.contrib.sessions.middleware.SessionMiddleware' - in settings.MIDDLEWARE_CLASSES) + in settings.MIDDLEWARE) # Only one backend to test: cache backend rosetta_settings.STORAGE_CLASS = 'rosetta.storage.CacheRosettaStorage' @@ -586,7 +586,7 @@ class RosettaTestCase(TestCase): def test_29_unsupported_p3_django_16_storage(self): if VERSION[0:2] < (2, 0): self.assertTrue('django.contrib.sessions.middleware.SessionMiddleware' - in settings.MIDDLEWARE_CLASSES) + in settings.MIDDLEWARE) settings.SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies" rosetta_settings.STORAGE_CLASS = 'rosetta.storage.SessionRosettaStorage' diff --git a/testproject/settings.py b/testproject/settings.py index 3bb9acb..ec8f6db 100644 --- a/testproject/settings.py +++ b/testproject/settings.py @@ -52,14 +52,13 @@ if django.VERSION[0:2] >= (1, 7): LANGUAGE_CODE = "en" -MIDDLEWARE_CLASSES = ( +MIDDLEWARE = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware' ) -MIDDLEWARE = MIDDLEWARE_CLASSES # Note: languages are overridden in the test runner LANGUAGES = (