1👍
✅
Don’t use the tag
decorator, which needs a separate Node class in order to resolve variables. Instead, use the simple_tag
decorator, which is passed the parameters directly.
@register.simple_tag
def myTag(item):
...
Source:stackexchange.com