Changeset - 99d3325e3322
[Not reviewed]
0 1 1
Bradley Kuhn (bkuhn) - 8 years ago 2015-12-01 03:19:46
bkuhn@ebb.org
Create subtract filter.
2 files changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/news/templatetags/subtract.py
Show inline comments
 
new file 100644
 
from django import template
 
register = template.Library()
 

	
 
@register.filter
 
def subtract(value, arg):
 
    return value - arg
www/conservancy/templates/base_conservancy.html
Show inline comments
 
{% load humanize %}
 
{% load subtract %}
 
<!DOCTYPE html>
 

	
 
<html lang="en">
0 comments (0 inline, 0 general)