Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,35 @@ Usage
-----
1. Add ``fsm_admin`` to your INSTALLED_APPS

2. Ensure that you have "django.core.context_processors.request" in your TEMPLATE_CONTEXT_PROCESSORS
in Django settings. If TEMPLATE_CONTEXT_PROCESSORS is not yet defined, add
2. For Django <= 1.7.x ensure that you have "django.core.context_processors.request" in your
TEMPLATE_CONTEXT_PROCESSORS in Django settings. If TEMPLATE_CONTEXT_PROCESSORS
is not yet defined, add

::

from django.conf import global_settings

TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)

For Django > 1.7.x ensure that you have "django.template.context_processors.request" in your
template options:

::
from django.conf import global_settings

TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
TEMPLATES = [
{
...
"OPTIONS": {
...
"context_processors": [
...
"django.template.context_processors.request",
],
},
},
]


3. In your ``admin.py`` file, use `FSMTransitionMixin` to add behaviour to your ModelAdmin.
Expand Down