Files @ 4da324d74a6d
Branch filter:

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

Bradley M. Kuhn
Update verbs as needed for congruence with previous change.
1
2
3
4
5
6
7
8
from django import template
register = template.Library()

@register.filter
def min(value, arg):
    if value > arg:
        return arg
    return value