project/scipycon/talk/templatetags/talk_extras.py
author primal primal007@gmail.com
Thu, 01 Dec 2011 14:50:55 +0530
branch2011
changeset 464 cec3c7dc4138
parent 94 87e77aa18610
permissions -rw-r--r--
Small fix

from django import template

register = template.Library()

def choice(choices, value):
    return choices[value]

register.filter('choice', choice)