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)