From 6547a478a9aeeb620ca41245495df20c1149dfda Mon Sep 17 00:00:00 2001 From: David D Lowe Date: Thu, 28 Jan 2016 16:26:19 +0100 Subject: [PATCH] Document incompatibility with CSRF_COOKIE_HTTPONLY jquery.django-csrf.js relies on `csrftoken` cookie being accessible through `document.cookie`, so we need to document that or fix it. --- README.md | 2 ++ README.rst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index a82147a..585c00d 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ Download django-admin-sortable from [source](https://github.com/iambrandontaylor ## Configuration 1. Add `adminsortable` to your `INSTALLED_APPS`. 2. Ensure `django.core.context_processors.static` is in your `TEMPLATE_CONTEXT_PROCESSORS`. +3. Ensure that `CSRF_COOKIE_HTTPONLY` has not been set to `True`, as +django-admin-sortable is currently incompatible with that setting. ### Static Media diff --git a/README.rst b/README.rst index 9aa2fd1..9d374ed 100644 --- a/README.rst +++ b/README.rst @@ -63,6 +63,8 @@ Configuration 1. Add ``adminsortable`` to your ``INSTALLED_APPS``. 2. Ensure ``django.core.context_processors.static`` is in your ``TEMPLATE_CONTEXT_PROCESSORS``. +3. Ensure that ``CSRF_COOKIE_HTTPONLY`` has not been set to ``True``, as + django-admin-sortable is currently incompatible with that setting. Static Media ~~~~~~~~~~~~