Tortoise-orm

Latest version: v0.21.3

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

Scan your dependencies

Page 1 of 24

0.21.3

------
Fixed
^^^^^
- Fix `bulk_update` when using source_field for pk (1633)

0.21.2

------
Added
^^^^^
- Add `create_unique_index` argument to M2M field and default if it is true (1620)

0.21.1

------
Fixed
^^^^^
- Fix error on using old style `pk=True`

0.21

====

0.21.0

------
Added
^^^^^
- Enhancement for FastAPI lifespan support (1371)
- Add __eq__ method to Q to more easily test dynamically-built queries (1506)
- Added PlainToTsQuery function for postgres (1347)
- Allow field's default keyword to be async function (1498)
- Add support for queryset slicing. (1341)

Fixed
^^^^^
- Fix `DatetimeField` use '__year' report `'int' object has no attribute 'utcoffset'`. (1575)
- Fix `bulk_update` when using custom fields. (1564)
- Fix `optional` parameter in `pydantic_model_creator` does not work for pydantic v2. (1551)
- Fix `get_annotations` now evaluates annotations in the default scope instead of the app namespace. (1552)
- Fix `get_or_create` method. (1404)
- Use `index_name` instead of `BaseSchemaGenerator._generate_index_name` to generate index name.
- Use subquery for count() and exists() in `QuerySet` to match count result to `QuerySet` result. (1607)

Changed
^^^^^^^
- Change `utils.chunk` from function to return iterables lazily.
- Removed lower bound of id keys in generated pydantic models. (1602)
- Rename Field initial arguments `pk`/`index` to `primary_key`/`db_index`. (1621)
- Renamed `Model.check` method to `Model._check` to avoid naming collision issues (1559) (1550)

Breaking Changes
^^^^^^^^^^^^^^^^
- `bulk_create` now does not return anything. (1614)

0.20.1

------
Added
^^^^^
- Add binary compression support for `UUIDField` in `MySQL`. (1458)
- Only `Model`, `Tortoise`, `BaseDBAsyncClient`, `__version__`, and `connections` are now exported from `tortoise`
- Add parameter `validators` to `pydantic_model_creator`. (1471)

Fixed
^^^^^
- Fix order of fields in `ValuesListQuery` when it has more than 10 fields. (1492)
- Fix pydantic v2 pydantic_model_creator nullable field not optional. (1454)
- Fix pydantic v2.5 unittest error. (1535)
- Fix pydantic_model_creator `exclude_readonly` parameter not working.
- Fix annotation propagation for non-filter queries. (1590)
- Fix blacksheep example unittest error. (1534)

Page 1 of 24

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.