Files @ 123eb7603cee
Branch filter:

Location: website/www/conservancy/apps/news/templatetags/subtract.py

Bradley M. Kuhn
Use typical way of putting the category in a block.

Django is so frustrating as it's never clear about how things trickle
up and down through templates, so move the category to the top like
the others.
1
2
3
4
5
6
from django import template
register = template.Library()

@register.filter
def subtract(value, arg):
    return value - arg