How do I add multiple arguments to my custom template filter in a django template?

前端 未结 9 529
时光说笑
时光说笑 2020-11-27 12:20

Here\'s my custom filter:

from django import template

register = template.Library()

@register.filter
def replace(value, cherche, remplacement):
    retur         


        
9条回答
  •  暖寄归人
    2020-11-27 13:03

    You can just simply do this:

    {% assign find_total_issued = dailysalesreport | find: "TotalIssued":"13" %}
    
    public static List Find(object collection, string column, string value)
    
    
    

    And it will reach the destination as the abstraction of the function is sjare.

    提交回复
    热议问题