changeset 1 | fda1c66b25f9 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/project/kiwipycon/talk/templatetags/talk_extras.py Fri Oct 30 15:09:12 2009 +0530 @@ -0,0 +1,8 @@ +from django import template + +register = template.Library() + +def choice(choices, value): + return choices[value] + +register.filter('choice', choice)