from django import template
from django.conf import settings

register = template.Library()


@register.filter
def called_same(qs, name):
    return [item for item in qs if item.name==name]

Add filter that gets items with the same .name from a list.
Add filter that gets items with the same .name from a list.
