Update helpdesk/settings.py

Co-authored-by: Benbb96 <Benbb96@users.noreply.github.com>
This commit is contained in:
Christopher Broderick 2023-11-15 11:31:45 +00:00 committed by GitHub
parent 6cba903827
commit da00cf67b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,8 +229,7 @@ HELPDESK_USE_HTTPS_IN_EMAIL_LINK = getattr(
settings, 'HELPDESK_USE_HTTPS_IN_EMAIL_LINK', settings.SECURE_SSL_REDIRECT) settings, 'HELPDESK_USE_HTTPS_IN_EMAIL_LINK', settings.SECURE_SSL_REDIRECT)
# Default to True for backwards compatibility # Default to True for backwards compatibility
HELPDESK_TEAMS_MODE_ENABLED = False if hasattr(settings, 'HELPDESK_TEAMS_MODE_ENABLED') and getattr( HELPDESK_TEAMS_MODE_ENABLED = getattr(settings, 'HELPDESK_TEAMS_MODE_ENABLED', True)
settings, 'HELPDESK_TEAMS_MODE_ENABLED', True) is False else True
if HELPDESK_TEAMS_MODE_ENABLED: if HELPDESK_TEAMS_MODE_ENABLED:
HELPDESK_TEAMS_MODEL = getattr( HELPDESK_TEAMS_MODEL = getattr(
settings, 'HELPDESK_TEAMS_MODEL', 'pinax_teams.Team') settings, 'HELPDESK_TEAMS_MODEL', 'pinax_teams.Team')