projects
/
django_unres.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
number of clusters <> 5
[django_unres.git]
/
django_simple
/
todo
/
templatetags
/
index.py
diff --git
a/django_simple/todo/templatetags/index.py
b/django_simple/todo/templatetags/index.py
index
07353ad
..
c5af2d0
100644
(file)
--- a/
django_simple/todo/templatetags/index.py
+++ b/
django_simple/todo/templatetags/index.py
@@
-3,5
+3,10
@@
register = template.Library()
@register.filter
def index(indexable, i):
- return indexable[i-1]
+ try:
+ ele=indexable[i-1]
+ except:
+ ele=''
+ return ele
+
\ No newline at end of file