mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-14 02:41:26 +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_URL = '/login/'
|
||||||
LOGIN_REDIRECT_URL = '/login/'
|
LOGIN_REDIRECT_URL = '/login/'
|
||||||
|
|
||||||
|
# Turn off server-side processing for this local demo
|
||||||
|
HELPDESK_USE_SERVERSIDE_PROCESSING = False
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# - by default, we use SQLite3 for the demo, but you can also
|
# - 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))
|
user_saved_queries = SavedSearch.objects.filter(Q(user=request.user) | Q(shared__exact=True))
|
||||||
|
|
||||||
# Serverside processing on datatables is optional. Set
|
# Serverside processing on datatables is optional. Set
|
||||||
# USE_SERVERSIDE_PROCESSING to False in settings.py to disable
|
# HELPDESK_USE_SERVERSIDE_PROCESSING to False in settings.py to disable
|
||||||
if helpdesk_settings.USE_SERVERSIDE_PROCESSING:
|
if helpdesk_settings.HELPDESK_USE_SERVERSIDE_PROCESSING:
|
||||||
cache.set('ticket_qs', ticket_qs)
|
cache.set('ticket_qs', ticket_qs)
|
||||||
context['server_side'] = True
|
context['server_side'] = True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user