project/scipycon/talk/templatetags/talk_extras.py
author primal primal007@gmail.com
Mon, 30 Jan 2012 15:19:23 +0530
branch2011
changeset 522 01b130ea8d8d
parent 94 87e77aa18610
permissions -rw-r--r--
Merged

from django import template

register = template.Library()

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

register.filter('choice', choice)