project/scipycon/talk/templatetags/talk_extras.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Tue, 13 Jul 2010 17:59:47 +0530
changeset 94 87e77aa18610
permissions -rw-r--r--
Moved the files to new Django app named scipycon and modified settings.

from django import template

register = template.Library()

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

register.filter('choice', choice)