project/scipycon/talk/templatetags/talk_extras.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 18 Nov 2010 19:04:24 +0530
branchpayments
changeset 278 2ea8af6851c9
parent 94 87e77aa18610
permissions -rw-r--r--
Modify the delegate_remainder function to send mails for the registered user and add content for registration update mail.

from django import template

register = template.Library()

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

register.filter('choice', choice)