【发布时间】:2019-07-30 00:34:31
【问题描述】:
带有多个参数的 Django 模板标签过滤器
@register.filter
def customTag(value, first, second):
...
return result
模板
{{ valor|customTag:first|customTag:second }}
错误
customTag 需要 3 个参数,提供 2 个
【问题讨论】:
-
......问题是......?
-
错误 customTag 需要 3 个参数,提供 2 个
标签: python django python-3.x python-2.7 django-templates