mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-22 16:03:19 +01:00
Demo should disable server-side processing for local demo usage
This commit is contained in:
parent
625a8e85f0
commit
2cd438f7b2
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user