From 2cd438f7b2d1ec4855a2e4625defb27e96ef4ee7 Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Fri, 21 Dec 2018 16:35:26 -0500 Subject: [PATCH] Demo should disable server-side processing for local demo usage --- demo/demodesk/config/settings.py | 2 ++ helpdesk/views/staff.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/demodesk/config/settings.py b/demo/demodesk/config/settings.py index 409cdf1d..14c54876 100644 --- a/demo/demodesk/config/settings.py +++ b/demo/demodesk/config/settings.py @@ -104,6 +104,8 @@ HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False LOGIN_URL = '/login/' LOGIN_REDIRECT_URL = '/login/' +# Turn off server-side processing for this local demo +HELPDESK_USE_SERVERSIDE_PROCESSING = False # Database # - by default, we use SQLite3 for the demo, but you can also diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 75b5ec0d..4a7c56dd 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -926,8 +926,8 @@ def ticket_list(request): user_saved_queries = SavedSearch.objects.filter(Q(user=request.user) | Q(shared__exact=True)) # Serverside processing on datatables is optional. Set - # USE_SERVERSIDE_PROCESSING to False in settings.py to disable - if helpdesk_settings.USE_SERVERSIDE_PROCESSING: + # HELPDESK_USE_SERVERSIDE_PROCESSING to False in settings.py to disable + if helpdesk_settings.HELPDESK_USE_SERVERSIDE_PROCESSING: cache.set('ticket_qs', ticket_qs) context['server_side'] = True else: