2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Merge pull request #2017 from matmair/fr-1421-sso

SSO!
This commit is contained in:
Oliver
2021-10-11 17:20:08 +11:00
committed by GitHub
31 changed files with 712 additions and 405 deletions

View File

@ -351,6 +351,12 @@ def object_link(url_name, pk, ref):
return mark_safe('<b><a href="{}">{}</a></b>'.format(ref_url, ref))
@register.simple_tag()
def mail_configured():
""" Return if mail is configured """
return bool(settings.EMAIL_HOST)
class I18nStaticNode(StaticNode):
"""
custom StaticNode