Skip to content

Commit

Permalink
Fix typo on filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuxbaum committed Nov 17, 2023
1 parent d84a174 commit 20af6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ Here's a filter that formats datetime objects:
def datetime_format(value, format="%H:%M %d-%m-%y"):
return value.strftime(format)
environment.filters["datetime_format"] = datetime_format
environment.filters["datetimeformat"] = datetime_format
Now it can be used in templates:

Expand Down

0 comments on commit 20af6a0

Please sign in to comment.