from django import template

register = template.Library()

@register.filter()
def inside(value, collection):
    return value in collection if isinstance(collection, list) else False
from django import template

register = template.Library()

@register.filter()
def inside(value, collection):
    return value in collection
Fix the inside.py template tag so it works