Skip to content

Commit 8f5253a

Browse files
Update changelog for programmatic nav construction and callable factory support (#217)
1 parent b24ec78 commit 8f5253a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
2020

2121
### Added
2222

23+
- `Nav` can now be constructed directly with `template_name` and `items` keyword arguments, without needing to subclass it.
24+
- The `django_simple_nav` template tag and Jinja2 extension now accept factory functions. A factory receives the current request and returns a `Nav`, making it easy to build request-aware navs (e.g. based on user authentication or permissions).
2325
- Added `is_anonymous`, `is_active`, and `is_superuser` as built-in user attribute permission checks, joining the existing `is_authenticated` and `is_staff`.
2426

2527
## [0.14.0]

0 commit comments

Comments
 (0)