Demo should disable server-side processing for local demo usage

This commit is contained in:
Garret Wassermann 2018-12-21 16:35:26 -05:00
parent 625a8e85f0
commit 2cd438f7b2
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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: