Skip to content

Commit 47fb8a0

Browse files
committed
Bump to 0.17.0.
1 parent b930359 commit 47fb8a0

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.17.0
4+
5+
- Add `dateformat` filter.
6+
37
## 0.16.0
48

59
- Add `dj-call` and `dj-model` tags.

docs/source/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.17.0
4+
5+
- Add `dateformat` filter.
6+
37
## 0.16.0
48

59
- Add `dj-call` and `dj-model` tags.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "dj-angles"
33
authors = [
44
{name = "Adam Hill", email = "[email protected]"}
55
]
6-
version = "0.16.0"
6+
version = "0.17.0"
77
description = "Add more bracket angles to Django templates </>"
88
readme = "README.md"
99
license = {file = "LICENSE"}

src/dj_angles/templatetags/dj_angles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from datetime import date, datetime, time
2+
from typing import Union
23

34
from django import template
45

@@ -9,7 +10,7 @@
910

1011

1112
@register.filter(name="dateformat")
12-
def dateformat(value: datetime | date | time, date_format: str):
13+
def dateformat(value: Union[datetime, date, time], date_format: str):
1314
return value.strftime(date_format)
1415

1516

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)