A. By subclassing the Filter class in the django.template module
B. By defining a Python function and registering it using the @register.filter decorator
C. By modifying the django.template.filters module
D. By adding the filter directly in the template using the {% filter %} tag
Correct Answer is :
B. By defining a Python function and registering it using the @register.filter decorator