project/scipycon/talk/templatetags/talk_extras.py
changeset 94 87e77aa18610
equal deleted inserted replaced
93:e86755df35da 94:87e77aa18610
       
     1 from django import template
       
     2 
       
     3 register = template.Library()
       
     4 
       
     5 def choice(choices, value):
       
     6     return choices[value]
       
     7 
       
     8 register.filter('choice', choice)