mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 21:16:46 +00:00
Use modern configuration for django-markdownify (#3286)
- Required to suppress some configuration warning messages
This commit is contained in:
parent
830ecd5677
commit
1ed49dcb2e
@ -875,7 +875,15 @@ REMOTE_LOGIN_HEADER = get_setting('INVENTREE_REMOTE_LOGIN_HEADER', CONFIG.get('r
|
|||||||
# Markdownify configuration
|
# Markdownify configuration
|
||||||
# Ref: https://django-markdownify.readthedocs.io/en/latest/settings.html
|
# Ref: https://django-markdownify.readthedocs.io/en/latest/settings.html
|
||||||
|
|
||||||
MARKDOWNIFY_WHITELIST_TAGS = [
|
MARKDOWNIFY = {
|
||||||
|
'default': {
|
||||||
|
'BLEACH': True,
|
||||||
|
'WHITELIST_ATTRS': [
|
||||||
|
'href',
|
||||||
|
'src',
|
||||||
|
'alt',
|
||||||
|
],
|
||||||
|
'WHITELIST_TAGS': [
|
||||||
'a',
|
'a',
|
||||||
'abbr',
|
'abbr',
|
||||||
'b',
|
'b',
|
||||||
@ -889,15 +897,9 @@ MARKDOWNIFY_WHITELIST_TAGS = [
|
|||||||
'p',
|
'p',
|
||||||
'strong',
|
'strong',
|
||||||
'ul'
|
'ul'
|
||||||
]
|
],
|
||||||
|
}
|
||||||
MARKDOWNIFY_WHITELIST_ATTRS = [
|
}
|
||||||
'href',
|
|
||||||
'src',
|
|
||||||
'alt',
|
|
||||||
]
|
|
||||||
|
|
||||||
MARKDOWNIFY_BLEACH = False
|
|
||||||
|
|
||||||
# Error reporting
|
# Error reporting
|
||||||
SENTRY_ENABLED = get_setting('INVENTREE_SENTRY_ENABLED', CONFIG.get('sentry_enabled', False))
|
SENTRY_ENABLED = get_setting('INVENTREE_SENTRY_ENABLED', CONFIG.get('sentry_enabled', False))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user