2009-09-09 11:11:05 +02:00
|
|
|
|
|
|
|
"""
|
2011-01-26 00:08:41 +01:00
|
|
|
Default settings for django-helpdesk.
|
2009-09-09 11:11:05 +02:00
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
# check for django-tagging support
|
|
|
|
HAS_TAG_SUPPORT = 'tagging' in settings.INSTALLED_APPS
|
|
|
|
try:
|
|
|
|
import tagging
|
|
|
|
except ImportError:
|
|
|
|
HAS_TAG_SUPPORT = False
|
2011-02-02 09:15:49 +01:00
|
|
|
|
|
|
|
try:
|
|
|
|
DEFAULT_USER_SETTINGS = settings.HELPDESK_DEFAULT_SETTINGS
|
|
|
|
except:
|
|
|
|
DEFAULT_USER_SETTINGS = None
|
|
|
|
|
|
|
|
if type(DEFAULT_USER_SETTINGS) != type(dict()):
|
|
|
|
DEFAULT_USER_SETTINGS = {
|
|
|
|
'use_email_as_submitter': True,
|
|
|
|
'email_on_ticket_assign': True,
|
|
|
|
'email_on_ticket_change': True,
|
|
|
|
'login_view_ticketlist': True,
|
|
|
|
'email_on_ticket_apichange': True,
|
|
|
|
'tickets_per_page': 25
|
|
|
|
}
|
2011-06-09 17:24:33 +02:00
|
|
|
|
|
|
|
# show knowledgebase links?
|
|
|
|
HELPDESK_KB_ENABLED = getattr(settings, 'HELPDESK_KB_ENABLED', True)
|