1. Felipe Prenholato
  2. django-timedelta-field

Commits

Matthew Schinckel  committed dc758a4

Forgot templatetag file

  • Participants
  • Parent commits b3dddb9
  • Branches default

Comments (0)

Files changed (1)

File timedelta/templatetags/decimal_hours.py

View file
  • Ignore whitespace
+from django import template
+register = template.Library()
+
+from ..helpers import decimal_hours as dh
+
+@register.filter(name='decimal_hours')
+def decimal_hours(value):
+    return dh(value)