Answers for "how to pass two arg django filters"

0

how to pass two arg django filters

#It is more simple than you think
#You can use simple_tag for this.
from django import template
register = template.Library()

@register.simple_tag
def multiple_args_tag(a, b, c, d):
   #do your stuff
   return
# courtesy: sof
# https://stackoverflow.com/questions/420703/how-do-i-add-multiple-arguments-to-my-custom-template-filter-in-a-django-templat
Posted by: Guest on April-11-2022

Python Answers by Framework

Browse Popular Code Answers by Language