projects
/
django_unres.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
number of clusters <> 5
[django_unres.git]
/
django_simple
/
todo
/
templatetags
/
index.py
1
from django import template
2
register = template.Library()
3
4
@register.filter
5
def index(indexable, i):
6
try:
7
ele=indexable[i-1]
8
except:
9
ele=''
10
return ele
11
12