From 540cccaf8ba34c9e5855d942b5ca61958041e5ad Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Wed, 5 Mar 2014 17:10:59 +0100 Subject: [PATCH] Upgrade instructions. see #526 --- doc/getting_started/upgrade.rst | 8 ++++++++ modoboa/core/commands/templates/settings.py.tpl | 1 + 2 files changed, 9 insertions(+) diff --git a/doc/getting_started/upgrade.rst b/doc/getting_started/upgrade.rst index c02ce9971..8e3d34d8c 100644 --- a/doc/getting_started/upgrade.rst +++ b/doc/getting_started/upgrade.rst @@ -48,6 +48,14 @@ Finally, follow the common procedure:: $ python manage.py syncdb --migrate $ python manage.py collectstatic +1.1.2: Audit trail issue +======================== + +A new middleware is necessary to retrieve the current user. To + activate it, add + ``'modoboa.lib.middleware.RequestCatcherMiddleware'`` at the end of + the ``MIDDLEWARE_CLASSES`` variable in the :file:`settings.py` file. + 1.1.1: Few bugfixes =================== diff --git a/modoboa/core/commands/templates/settings.py.tpl b/modoboa/core/commands/templates/settings.py.tpl index 87b8caa88..f2fc8fe8f 100644 --- a/modoboa/core/commands/templates/settings.py.tpl +++ b/modoboa/core/commands/templates/settings.py.tpl @@ -118,6 +118,7 @@ MIDDLEWARE_CLASSES = ( 'modoboa.lib.middleware.AjaxLoginRedirect', 'modoboa.lib.middleware.CommonExceptionCatcher', 'modoboa.lib.middleware.ExtControlMiddleware', + 'modoboa.lib.middleware.RequestCatcherMiddleware', ) ROOT_URLCONF = '{{ name }}.urls'