mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-24 17:04:25 +01:00
Remove all mention of obsolute API deactivation switch. The helpdesk frontend
now requires the API
This commit is contained in:
parent
3d4d58b5fd
commit
162a368b9d
@ -119,9 +119,6 @@ HELPDESK_TICKETS_TIMELINE_ENABLED = True
|
|||||||
# Allow users to change their passwords
|
# Allow users to change their passwords
|
||||||
HELPDESK_SHOW_CHANGE_PASSWORD = True
|
HELPDESK_SHOW_CHANGE_PASSWORD = True
|
||||||
|
|
||||||
# Activate the API
|
|
||||||
HELPDESK_ACTIVATE_API_ENDPOINT = True
|
|
||||||
|
|
||||||
# Instead of showing the public web portal first,
|
# Instead of showing the public web portal first,
|
||||||
# we can instead redirect users straight to the login page.
|
# we can instead redirect users straight to the login page.
|
||||||
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
|
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = False
|
||||||
|
@ -4,10 +4,6 @@ API
|
|||||||
A REST API (built with ``djangorestframework``) is available in order to list, create, update and delete tickets from
|
A REST API (built with ``djangorestframework``) is available in order to list, create, update and delete tickets from
|
||||||
other tools thanks to HTTP requests.
|
other tools thanks to HTTP requests.
|
||||||
|
|
||||||
If you wish to use it, you have to add this line in your settings::
|
|
||||||
|
|
||||||
HELPDESK_ACTIVATE_API_ENDPOINT = True
|
|
||||||
|
|
||||||
You must be authenticated to access the API, the URL endpoint is ``/api/tickets/``.
|
You must be authenticated to access the API, the URL endpoint is ``/api/tickets/``.
|
||||||
You can configure how you wish to authenticate to the API by customizing the ``DEFAULT_AUTHENTICATION_CLASSES`` key
|
You can configure how you wish to authenticate to the API by customizing the ``DEFAULT_AUTHENTICATION_CLASSES`` key
|
||||||
in the ``REST_FRAMEWORK`` setting (more information on this page : https://www.django-rest-framework.org/api-guide/authentication/)
|
in the ``REST_FRAMEWORK`` setting (more information on this page : https://www.django-rest-framework.org/api-guide/authentication/)
|
||||||
|
@ -183,11 +183,6 @@ Staff Ticket Creation Settings
|
|||||||
|
|
||||||
**Default:** ``HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False``
|
**Default:** ``HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = False``
|
||||||
|
|
||||||
- **HELPDESK_ACTIVATE_API_ENDPOINT** Activate the API endpoint to manage tickets thanks to Django REST Framework. See the API section in documentation for more information.
|
|
||||||
|
|
||||||
**Default:** ``HELPDESK_ACTIVATE_API_ENDPOINT = False``
|
|
||||||
|
|
||||||
|
|
||||||
Staff Ticket View Settings
|
Staff Ticket View Settings
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
@ -200,10 +200,6 @@ HELPDESK_MAX_EMAIL_ATTACHMENT_SIZE = getattr(
|
|||||||
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = getattr(
|
HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO = getattr(
|
||||||
settings, 'HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO', False)
|
settings, 'HELPDESK_CREATE_TICKET_HIDE_ASSIGNED_TO', False)
|
||||||
|
|
||||||
# Activate the API endpoint to manage tickets thanks to Django REST Framework
|
|
||||||
HELPDESK_ACTIVATE_API_ENDPOINT = getattr(
|
|
||||||
settings, 'HELPDESK_ACTIVATE_API_ENDPOINT', False)
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
# email options #
|
# email options #
|
||||||
|
@ -108,8 +108,6 @@ class QuickDjangoTest:
|
|||||||
HELPDESK_TEAMS_MODEL='auth.User',
|
HELPDESK_TEAMS_MODEL='auth.User',
|
||||||
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES=[],
|
HELPDESK_TEAMS_MIGRATION_DEPENDENCIES=[],
|
||||||
HELPDESK_KBITEM_TEAM_GETTER=lambda _: None,
|
HELPDESK_KBITEM_TEAM_GETTER=lambda _: None,
|
||||||
# test the API
|
|
||||||
HELPDESK_ACTIVATE_API_ENDPOINT=True,
|
|
||||||
# Set IMAP Server Debug Verbosity
|
# Set IMAP Server Debug Verbosity
|
||||||
HELPDESK_IMAP_DEBUG_LEVEL=int(os.environ.get("HELPDESK_IMAP_DEBUG_LEVEL", "0")),
|
HELPDESK_IMAP_DEBUG_LEVEL=int(os.environ.get("HELPDESK_IMAP_DEBUG_LEVEL", "0")),
|
||||||
)
|
)
|
||||||
|
@ -116,9 +116,6 @@ HELPDESK_TICKETS_TIMELINE_ENABLED = os.environ.get('HELPDESK_TICKETS_TIMELINE_EN
|
|||||||
# Allow users to change their passwords
|
# Allow users to change their passwords
|
||||||
HELPDESK_SHOW_CHANGE_PASSWORD = os.environ.get('HELPDESK_SHOW_CHANGE_PASSWORD', 'True') == 'True'
|
HELPDESK_SHOW_CHANGE_PASSWORD = os.environ.get('HELPDESK_SHOW_CHANGE_PASSWORD', 'True') == 'True'
|
||||||
|
|
||||||
# Activate the API
|
|
||||||
HELPDESK_ACTIVATE_API_ENDPOINT = os.environ.get('HELPDESK_ACTIVATE_API_ENDPOINT', 'True') == 'True'
|
|
||||||
|
|
||||||
# Instead of showing the public web portal first,
|
# Instead of showing the public web portal first,
|
||||||
# we can instead redirect users straight to the login page.
|
# we can instead redirect users straight to the login page.
|
||||||
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = os.environ.get('HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT', 'False') == 'True'
|
HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT = os.environ.get('HELPDESK_REDIRECT_TO_LOGIN_BY_DEFAULT', 'False') == 'True'
|
||||||
|
Loading…
Reference in New Issue
Block a user