This was huge. With almost 7k lines diff from previous release, 2.4 is focused on Python 3.10 support and ORM features.
Due to the already consistent amount of changes, some features originally planned for this release were postponed to next major release.
Thanks to all the community for their patience, with a special mention to @Kkeller83 who keeps sponsoring Emmett project and @treelym who sponsored the project for a couple of months since last major release.
Changes since 2.3:
Added official Python 3.10 support
Added relative path support in templates
Added support for spatial columns in ORM
Added support for custom/multiple primary keys in ORM
Added support for custom/multiple foreign keys in ORM
Added support for custom and multiple primary keys relations in ORM
Added watch parameter to ORM's compute decorator
Added save method to ORM's rows and relevant callbacks
Added destroy method to ORM's rows and relevant callbacks
Added refresh method to ORM's rows
Added before_commit and after_commit ORM callbacks
Added changes tracking to ORM's rows
Added support to call super rowmethod decorated methods in ORM models
Added migrations set command to CLI
Added skip_callbacks parameter to relevant methods in ORM
ORM now automatically adds appropriate indexes for unique fields
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps emmett[orjson] from 2.3.2 to 2.4.0.
Release notes
Sourced from emmett[orjson]'s releases.
Changelog
Sourced from emmett[orjson]'s changelog.
... (truncated)
Commits
fa5f50e
Merge branch 'master' into releasee0eb098
Release 2.4.0f4d3351
docs: update migrations chapters2fb0c82
orm: add implicit indexes forunique
fields (close #246)d7bd3c8
Update dependencies208de8f
docs: add 2.4 upgrade guideec324a9
update forms to use new model methods615ba26
fix orm models' rows unpicklingea5800b
enhance orm.geo.Polygon helper3e4220a
enhance GeoFieldWrapper serializationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)