DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': ':memory:',
    }
}

SECRET_KEY = 'fake-key'

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'csv_export',
    'tests',
]

MIDDLEWARE = [
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
]

USE_TZ = True

ROOT_URLCONF = 'tests.urls'

@@ -1,8 +1,23 @@
+import django%0A%0A
 DATABASE
@@ -405,16 +405,82 @@
 re',%0A%5D%0A%0A
+if django.VERSION %3C (1, 10):%0A    MIDDLEWARE_CLASSES = MIDDLEWARE%0A%0A
 USE_TZ =

Fix tests on Django 1.8.