How to add multiple arguments to my custom template filter in a django template?
It is possible and fairly simple. Django only allows one argument to your filter, but there’s no reason you can’t put all your arguments into a single string using a comma to separate them. So for example, if you want a filter that checks if variable X is in the list [1,2,3,4] you will want … Read more