Calendar Filter¶
-
steroidscal.
day_abbr
(day)¶ get the localized abbrevation for a day. starts mondays with 0
- Parameters
day (int) – index of day, monday==0
- Raise
AssertionError
- Return type
str
-
steroidscal.
day_name
(day)¶ get the localized name for a day.
- Parameters
day (int) – index of day, monday==0
- Raise
AssertionError
- Return type
str
-
steroidscal.
month_name
(month)¶ get the localized name for a month.
- Parameters
month (int) – index of day, monday==0
- Raise
AssertionError
- Return type
str
Math Filter¶
-
steroidsmath.
absolute
(value)¶ return the absolute value
- Parameters
value (int/float/Decimal) –
-
steroidsmath.
add
(value, arg)¶ add arg to value
- Parameters
value (int/float/Decimal) –
arg (int/float/Decimal) –
- Returns
-
steroidsmath.
div
(value, arg)¶ divide value with arg
- Parameters
value (int/float/Decimal) –
arg (int/float/Decimal) –
- Returns
-
steroidsmath.
mul
(value, arg)¶ multiply arg with value
- Parameters
value (int/float/Decimal) –
arg (int/float/Decimal) –
- Returns
-
steroidsmath.
sub
(value, arg)¶ substract arg from value
- Parameters
value (int/float/Decimal) –
arg (int/float/Decimal) –
- Returns
Parameter Filter¶
-
steroidsparameter.
param_remove
(params, arg)¶ removes given arg from url parameters querydict
- Parameters
params (QueryDict) –
arg (str) –
- Return type
str
-
steroidsparameter.
param_replace
(context, **kwargs)¶ replace a parameter in request.GET useful for paginated sites with filters for example
- Parameters
context (dict) –
kwargs –
- Return type
str