From 625a8e85f0e9d909554f0b5298baf6e8730480db Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Fri, 21 Dec 2018 16:30:43 -0500 Subject: [PATCH] Rename USE_SERVERSIDE_PROCESSING to HELPDESK_USE_SERVERSIDE_PROCESSING for consistency, correctly include local project override, and add documentation --- docs/settings.rst | 4 ++++ helpdesk/settings.py | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/settings.rst b/docs/settings.rst index 9f9898a0..72792849 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -89,6 +89,10 @@ These changes are visible throughout django-helpdesk - **HELPDESK_ANON_ACCESS_RAISES_404** If True, redirects user to a 404 page when attempting to reach ticket pages while not logged in, rather than redirecting to a login screen. **Default:** ``HELPDESK_ANON_ACCESS_RAISES_404 = False`` + +- **HELPDESK_USE_SERVERSIDE_PROCESSING** If True, may improve performance by utilizing server-side processing of the full ticket list whenever performing queries on the ticket list. Set to False to restore the "classic" functionality using javascript. + + **Default:** ``HELPDESK_USE_SERVERSIDE_PROCESSING = True`` Options shown on public pages diff --git a/helpdesk/settings.py b/helpdesk/settings.py index 152d7347..5503f3d6 100644 --- a/helpdesk/settings.py +++ b/helpdesk/settings.py @@ -151,4 +151,5 @@ HELPDESK_ENABLE_PER_QUEUE_STAFF_PERMISSION = getattr( # Asynchronous Datatables - Optional -USE_SERVERSIDE_PROCESSING = True +HELPDESK_USE_SERVERSIDE_PROCESSING = getattr( + settings, 'HELPDESK_USE_SERVERSIDE_PROCESSING', True)