2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 19:46:46 +00:00

Silence duplicate template warnings (#6586)

This commit is contained in:
Oliver 2024-02-27 17:41:46 +11:00 committed by GitHub
parent 0c6334b3b4
commit bbace2b1c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,6 +80,7 @@ DEBUG = get_boolean_setting('INVENTREE_DEBUG', 'debug', True)
ENABLE_CLASSIC_FRONTEND = get_boolean_setting( ENABLE_CLASSIC_FRONTEND = get_boolean_setting(
'INVENTREE_CLASSIC_FRONTEND', 'classic_frontend', True 'INVENTREE_CLASSIC_FRONTEND', 'classic_frontend', True
) )
# Disable CUI parts if CUI tests are disabled # Disable CUI parts if CUI tests are disabled
if TESTING and '--exclude-tag=cui' in sys.argv: if TESTING and '--exclude-tag=cui' in sys.argv:
ENABLE_CLASSIC_FRONTEND = False ENABLE_CLASSIC_FRONTEND = False
@ -828,7 +829,8 @@ SESSION_ENGINE = 'user_sessions.backends.db'
LOGOUT_REDIRECT_URL = get_setting( LOGOUT_REDIRECT_URL = get_setting(
'INVENTREE_LOGOUT_REDIRECT_URL', 'logout_redirect_url', 'index' 'INVENTREE_LOGOUT_REDIRECT_URL', 'logout_redirect_url', 'index'
) )
SILENCED_SYSTEM_CHECKS = ['admin.E410']
SILENCED_SYSTEM_CHECKS = ['admin.E410', 'templates.E003', 'templates.W003']
# Password validation # Password validation
# https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/1.10/ref/settings/#auth-password-validators