Removed the unused str_format template tag from the Mia core application.

This commit is contained in:
依瑪貓 2020-08-09 23:05:50 +08:00
parent a067755e10
commit f66d186073

View File

@ -49,20 +49,6 @@ def setvar(context, key, value):
return "" return ""
@register.simple_tag
def str_format(format_str, *args):
"""Sets a variable in the template.
Args:
format_str (str): The format.
args (*str): The arguments.
Returns:
str: The formatted text string.
"""
return format_str.format(*args)
@register.simple_tag(takes_context=True) @register.simple_tag(takes_context=True)
def url_period(context, period_spec): def url_period(context, period_spec):
"""Returns the current URL with a new period. """Returns the current URL with a new period.