mirror of
https://github.com/django-components/django-components.git
synced 2025-07-12 19:34:59 +00:00
chore: bump v0.118 (#843)
This commit is contained in:
parent
dfd4187192
commit
a5659691d0
2 changed files with 21 additions and 1 deletions
20
CHANGELOG.md
20
CHANGELOG.md
|
@ -1,5 +1,25 @@
|
||||||
# Release notes
|
# Release notes
|
||||||
|
|
||||||
|
## v0.118
|
||||||
|
|
||||||
|
#### Feat
|
||||||
|
|
||||||
|
- Add support for `context_processors` and `RenderContext` inside component templates
|
||||||
|
|
||||||
|
`Component.render()` and `Component.render_to_response()` now accept an extra kwarg `request`.
|
||||||
|
|
||||||
|
```py
|
||||||
|
def my_view(request)
|
||||||
|
return MyTable.render_to_response(
|
||||||
|
request=request
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
- When you pass in `request`, the component will use `RenderContext` instead of `Context`.
|
||||||
|
Thus the context processors will be applied to the context.
|
||||||
|
|
||||||
|
- NOTE: When you pass in both `request` and `context` to `Component.render()`, and `context` is already an instance of `Context`, the `request` kwarg will be ignored.
|
||||||
|
|
||||||
## v0.117
|
## v0.117
|
||||||
|
|
||||||
#### Fix
|
#### Fix
|
||||||
|
|
|
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "django_components"
|
name = "django_components"
|
||||||
version = "0.117"
|
version = "0.118"
|
||||||
requires-python = ">=3.8, <4.0"
|
requires-python = ">=3.8, <4.0"
|
||||||
description = "A way to create simple reusable template components in Django."
|
description = "A way to create simple reusable template components in Django."
|
||||||
keywords = ["django", "components", "css", "js", "html"]
|
keywords = ["django", "components", "css", "js", "html"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue