Tortoise-orm

Latest version: v0.24.2

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 26

0.24.2

------

Fixed
^^^^^
- Fix model with multi m2m fields generates wrong references name (1897)
- Fix using reserved words in order_by (1900)
- Fix installing tortoise-orm with poetry 2 (1885)

Changed
^^^^^^^
- Use 'unique' instead of 'create_unique_index' for m2m field (1903)

0.24.1

------
Added
^^^^^
- Implement __contains, __contained_by, __overlap and __len for ArrayField (1877)

Fixed
^^^^^
- Fix update pk field raises unfriendly error (1873)
- Using `.distinct()` with an annotation and `.order_by()` produces invalid SQL for PostgreSQL (1886)

0.24

====

0.24.0

------
Fixed
^^^^^
- `_get_dialects`: support properties (1859)
- Rename pypika to pypika_tortoise for fixing package name conflict (1829)
- Concurrent connection pool initialization (1825)

Changed
^^^^^^^
- Drop support for Python3.8 (1848)
- Optimize field conversion to database format to speed up `create` and `bulk_create` (1840)
- Improved query performance by optimizing SQL generation (1837)

0.23.0

------
Added
^^^^^
- Implement savepoints for transactions (1816)
- Added type validation for foreign key fields to ensure type safety. Now raises `ValidationError` when assigning foreign key values with incorrect model types (1792)

Fixed
^^^^^
- Fixed a deadlock in three level nested transactions (1810)
- Fix backward_relations in PydanticMeta (1814)

0.22.2

------
Fixed
^^^^^
- Fix bug related to `Connector.div` in combined expressions. (1794)
- Fix recovery in case of database downtime (1796)

Changed
^^^^^^^
- Parametrizes UPDATE, DELETE, bulk update and create operations (1785)
- Parametrizes related field queries (1797)

Added
^^^^^
- CharEnumField and IntEnumField is supported by pydantic_model_creator (1798)

Page 1 of 26

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.