Skip to content

Commit

Permalink
Add auth context_processor needed for example admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnns committed Mar 4, 2016
1 parent edd7d05 commit 52683c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
5 changes: 4 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
},
},
]
Expand Down

0 comments on commit 52683c6

Please sign in to comment.