Skip to content

Instantly share code, notes, and snippets.

@esseti
Created Mar 30, 2018
Embed
What would you like to do?
from django import template
register = template.Library()
@register.filter
def index(List, i):
return List[int(i)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment