Skip to content

Commit

Permalink
Merge pull request #37 from logikal-io/add-hasattr
Browse files Browse the repository at this point in the history
Add hasattr
  • Loading branch information
GergelyKalmar authored Nov 9, 2024
2 parents 9430ddf + 3ba4566 commit 9d83bbd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions django_logikal/templates/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def environment(**options: dict[str, Any]) -> Environment:
# Built-in functions
'dir': dir,
'getattr': getattr,
'hasattr': hasattr,
'repr': repr,
'type': type,
# Built-in types
Expand Down
2 changes: 1 addition & 1 deletion docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Filters
-------
The following Python built-in objects are exposed as filters:

- Functions: :func:`dir`, :func:`getattr`, :func:`repr`, :func:`type`
- Functions: :func:`dir`, :func:`getattr`, :func:`hasattr`, :func:`repr`, :func:`type`
- Types: :obj:`str`

.. automodule:: django_logikal.templates.filters
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d83bbd

Please sign in to comment.