From 52683c6165e7a3b09ea796c833a23d9ddbfe7dd1 Mon Sep 17 00:00:00 2001 From: Jannis Date: Fri, 4 Mar 2016 11:39:41 +0100 Subject: [PATCH] Add auth context_processor needed for example admin. --- README.rst | 2 +- tests/settings.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 48d782806..f1cb33dc2 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Features: * export data respecting admin filters -.. image:: https://raw.github.com/django-import-export/django-import-export/master/docs/_static/images/django-import-export-change.png +.. image:: docs/_static/images/django-import-export-change.png * Documentation: https://django-import-export.readthedocs.org/en/latest/ diff --git a/tests/settings.py b/tests/settings.py index cb40a163d..a72808df3 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -39,7 +39,10 @@ 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': { - 'context_processors': {'django.contrib.messages.context_processors.messages',}, + 'context_processors': ( + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ), }, }, ]