| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| 1.1.8 source code.tar.gz | 2026-08-10 | 836.3 kB | |
| 1.1.8 source code.zip | 2026-08-10 | 1.1 MB | |
| README.md | 2026-08-10 | 3.4 kB | |
| Totals: 3 Items | 1.9 MB | 0 | |
What's Changed
Added
QuerySet.union()— SQL UNION query support for combining results from multiple QuerySets, including support for union across different models,union(all=True)for duplicates,order_by(),limit(), andcount(). (#2146)- feat: add
postgresql://scheme as alias for asyncpg (#2154) - feat: add pre commit config and fix codespell issues (#2159)
- feat: django compatibility field name (#2160)
- feat: expose classmethod to build tortoise config (#2162)
QuerySet.contains()method to check if an object exists in a queryset. (#2163)- Added comprehensive EXPLAIN support for MySQL and PostgreSQL. (#2165)
- Built-in
DomainNameValidator,URLValidator, andEmailValidatorclasses for common validation patterns. (#2167)
Changed
- chore: update asyncmy to 0.2.12 (#2259)
Fixed
MigrationRecordernow uses parameterized queries; fixes MariaDB/MySQL rejecting ISO-8601applied_atvalues. (#2132)- fix(migrations): use parameterized queries in MigrationRecorder (#2153)
- Applies model generics on relational fields functions (#2156)
- fix: MSSQL connection left in busy state after insert (#2171)
db_defaultonForeignKeyField/OneToOneFieldnow propagates to the underlying<fk>_idcolumn, soCREATE TABLEemits theDEFAULTclause for FK columns. (#2199)- Fix
db_defaulton FK/O2O dropped during_init_relations(#2200) MigrationRecorderno longer emits tortoise's ownpkfieldDeprecationWarningwhen applying migrations; it now builds its bookkeeping model withprimary_key=True. (#2203)QuerySet.count()now matches the limited query result for the LIMIT/OFFSET edge cases: it returns0(instead of a negative number) whenoffset()exceeds the total row count, and0(instead of the total) forlimit(0). (#2208)- tests: cover Q inequality and unhashable behavior (#2214)
- Field declarations on models now resolve to their concrete type (e.g.
CharField[str]) in Pyright/Pylance instead ofField[Unknown]; theField.__new__type-check stub now returnsSelf. (#2216) - Type hint for
TransactionContextnow returns aTransactionalDBClientinstead of a raw database connection. This change gives the correct inferred type for the transaction context. (#2232) - Fix TSVectorField returned value conversion. (#2237)
New Contributors
- @ropmyung made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2156
- @9t8 made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2182
- @EmmanuelNiyonshuti made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2189
- @roomm made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2192
- @koriyoshi2041 made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2208
- @lphuc2250gma made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2214
- @r266-tech made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2154
- @vlakius made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2216
- @mixartemev made their first contribution in https://github.com/tortoise/tortoise-orm/pull/2200
Full Changelog: https://github.com/tortoise/tortoise-orm/compare/1.1.7...1.1.8