I need to call a filter with more than one argument.
If a filter takes only one parameter, for example "cut", we can call it with
{{ somevariable|cut:"0" }}
But if I create a custom filter which takes two parameters, I cannot call it with correct syntax.
For answers, I ask this only:
- I don't want to send one argument and parse it in my custom filter.
- I also don't want to chain the filters.
I think calling with two arguments is legal because there is a default filter named urlizentrunc.
def urlizetrunc(value, limit, autoescape=None):