Skip to content

Commit

Permalink
Release version 4.6.0 [skip ci]
Browse files Browse the repository at this point in the history
Type: trivial
  • Loading branch information
wesleykendall committed Oct 7, 2022
1 parent 77caf5f commit 9cf9e61
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,21 @@
# Changelog
## 4.6.0 (2022-10-06)
### Feature
- Added ``pgtrigger.Func`` for accessing model properties in function declarations. [Wesley Kendall, 4bd6abf]

When describing a trigger in ``Meta``, it's not possible to access model meta properties
like ``db_table``. ``pgtrigger.Func`` solves this by exposing ``meta``, ``fields``,
and ``columns`` variables that can be used in a format string.

See the trigger cookbook in the docs for an example.
- Added ``ReadOnly`` trigger for uneditable models and fields [Wesley Kendall, 0a3c162]

The ``pgtrigger.ReadOnly`` trigger protects updates on models and takes
an optional ``fields`` or ``exclude`` argument to specify which fields are
read only. If no arguments are provided, the entire model is read only.
### Trivial
- Updated with latest Django template [Wesley Kendall, 84b46f1]

## 4.5.3 (2022-09-19)
### Trivial
- Fix typo in documentation [Francisco Couzo, def5432]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -30,7 +30,7 @@ packages = [
exclude = [
"*/tests/"
]
version = "4.5.3"
version = "4.6.0"
description = "Postgres trigger support integrated with Django models."
authors = ["Wes Kendall"]
classifiers = [
Expand Down

0 comments on commit 9cf9e61

Please sign in to comment.