mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-22 23:00:54 +00:00
can not be covered in testing
This commit is contained in:
@ -540,7 +540,7 @@ class I18nStaticNode(StaticNode):
|
|||||||
custom StaticNode
|
custom StaticNode
|
||||||
replaces a variable named *lng* in the path with the current language
|
replaces a variable named *lng* in the path with the current language
|
||||||
"""
|
"""
|
||||||
def render(self, context):
|
def render(self, context): # pragma: no cover
|
||||||
|
|
||||||
self.original = getattr(self, 'original', None)
|
self.original = getattr(self, 'original', None)
|
||||||
|
|
||||||
@ -563,7 +563,7 @@ if settings.DEBUG:
|
|||||||
""" simple tag to enable {% url %} functionality instead of {% static %} """
|
""" simple tag to enable {% url %} functionality instead of {% static %} """
|
||||||
return reverse(url_name)
|
return reverse(url_name)
|
||||||
|
|
||||||
else:
|
else: # pragma: no cover
|
||||||
|
|
||||||
@register.tag('i18n_static')
|
@register.tag('i18n_static')
|
||||||
def do_i18n_static(parser, token):
|
def do_i18n_static(parser, token):
|
||||||
|
Reference in New Issue
Block a user