Path to this page:
Subject: CVS commit: pkgsrc/databases/py-tortoise-orm
From: Adam Ciarcinski
Date: 2024-11-20 13:53:23
Message id: 20241120125323.46538FC7D@cvs.NetBSD.org
Log Message:
py-tortoise-orm: updated to 0.22.0
0.22.0
Fixed
- Fix enums not quoted, allowing using of str enums for filters
- Primary key field should not be nullable in pydantic schema
- Fix ambiguous column name when grouping with joining
- Fix same model returned by pydantic_model_creator calls with different arguments
Added
- JSONField adds optional generic support, and supports OpenAPI document \
generation by specifying `field_type` as a pydantic BaseModel
- Add table_name_generator attribute to Tortoise.init for dynamic table name \
generation
- Support for annotation and joins F() expressions
- Allow use of annotate fields within Case-When expression
- Added new queryset methods: last(), latest(), earliest()
Changed
- Change old pydantic docs link to new one
- Refactored pydantic_model_creator, interface not changed
- Values are no longer validated to be right type upon loading from database
- Refactored private field names in queryset classes
Files: