fix via relations resolution iteration with intermediate via relations
fix migration engine generation in case of custom commands in tree
align has_one relations behaviour to has_many with via usage
avoid to replace field contents unless necessary in empty validation checks
Emmett 2.4.1
Patch release
Changes since 2.4.0:
fix regression bug preventing has_many decorator relation parsing with field parameter
Emmett 2.4 Edison
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.2.
Release notes
Sourced from emmett[orjson]'s releases.
Changelog
Sourced from emmett[orjson]'s changelog.
... (truncated)
Commits
a647916
Merge branch 'master' into releaseb43c494
Merge pull request #412 from emmett-framework/patch-2.4.235ede79
orm: fix set join rules withhas_one
relations andvia
option0f9fb2c
fix empty validator values tamperingdb33910
orm: fix has_one behaviour with 'via' option9bb9b38
migrations: allow to skip revision during compare step of generationd2e8a00
migrations: add original engine methods on meta instancedbc65aa
ensure json serializers/parsers usage also on orm-related components6c022a3
orm: fix via relationset resolution in re-iterationsb43d0a8
orm: fix many relations resolution with decorated methodsDependabot 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)