from django import template register = template.Library() @register.filter def replace(value, cherche, remplacement): retur
Not possible according to this section of the docs:
Custom filters are just Python functions that take one or two arguments: