projects
/
django_unres.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
preparation for 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
new file mode 100644
(file)
index 0000000..
07353ad
--- /dev/null
+++ b/
django_simple/todo/templatetags/index.py
@@ -0,0
+1,7
@@
+from django import template
+register = template.Library()
+
+@register.filter
+def index(indexable, i):
+ return indexable[i-1]
+
\ No newline at end of file