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

use tag for testing

This commit is contained in:
Matthias
2021-10-07 17:31:18 +02:00
parent c83d244663
commit c37e40d144
2 changed files with 8 additions and 1 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