intranet.apps.templatetags package¶
Submodules¶
intranet.apps.templatetags.dates module¶
- intranet.apps.templatetags.dates.fuzzy_date(date)[source]¶
Formats a datetime.datetime object relative to the current time.
intranet.apps.templatetags.dictionaries module¶
intranet.apps.templatetags.form_field module¶
- intranet.apps.templatetags.form_field.field_(self, name)[source]¶
From https://github.com/halfnibble/django-underscore-filters
Get a form field starting with _. Taken near directly from Django > forms. Returns a BoundField with the given name.
intranet.apps.templatetags.forms module¶
intranet.apps.templatetags.math module¶
- intranet.apps.templatetags.math.divide(dividend, divisor)[source]¶
Returns the quotient of the arguments as a float.
- intranet.apps.templatetags.math.round_num(number, precision=0)[source]¶
Rounds a number to a given precision in decimal digits (default 0 digits) and returns the integer value.
Precision may be negative. A precision of 1 will round to the tenths place and a precision of -1 will round to the tens place.
Returns: Float
intranet.apps.templatetags.newtab_links module¶
intranet.apps.templatetags.paginate module¶
intranet.apps.templatetags.strings module¶
intranet.apps.templatetags.tests module¶
- class intranet.apps.templatetags.tests.TemplateTest(methodName='runTest')[source]¶
Bases:
IonTestCase
Tests for the templates.