From b6e2027d1b2e481c2595d2a85042c27202818feb Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 15 Nov 2013 20:17:30 +0100 Subject: Disable the toolbar entirely on AJAX requests. --- docs/configuration.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/configuration.rst b/docs/configuration.rst index d8cf9a9..df203cb 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -84,10 +84,11 @@ Toolbar options If set to ``None``, the debug toolbar middleware will use its built-in ``show_toolbar`` method for determining whether the toolbar should show or - not. The default checks are that ``DEBUG`` must be set to ``True`` and the - IP of the request must be in ``INTERNAL_IPS``. You can provide your own - method for displaying the toolbar which contains your custom logic. This - method should return ``True`` or ``False``. + not. The default checks are that ``DEBUG`` must be set to ``True``, the IP + of the request must be in ``INTERNAL_IPS``, and the request must no be an + AJAX request. You can provide your own method for displaying the toolbar + which contains your custom logic. This method should return ``True`` or + ``False``. * ``TAG`` -- cgit v1.2.3