You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,20 +13,29 @@ Changelog
13
13
14
14
Added
15
15
^^^^^
16
-
- ``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()``, and ``count()``.
17
-
- ``QuerySet.contains()`` method to check if an object exists in a queryset.
18
-
- Added comprehensive EXPLAIN support for MySQL and PostgreSQL.
19
-
- Built-in ``DomainNameValidator``, ``URLValidator``, and ``EmailValidator`` classes for common validation patterns. (#2162)
16
+
- ``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()``, and ``count()``. (#2146)
17
+
- feat: add ``postgresql://`` scheme as alias for asyncpg (#2154)
18
+
- feat: add pre commit config and fix codespell issues (#2159)
19
+
- feat: django compatibility field name (#2160)
20
+
- feat: expose classmethod to build tortoise config (#2162)
21
+
- ``QuerySet.contains()`` method to check if an object exists in a queryset. (#2163)
22
+
- Added comprehensive EXPLAIN support for MySQL and PostgreSQL. (#2165)
23
+
- Built-in ``DomainNameValidator``, ``URLValidator``, and ``EmailValidator`` classes for common validation patterns. (#2167)
- fix(migrations): use parameterized queries in MigrationRecorder (#2153)
29
+
- Applies model generics on relational fields functions (#2156)
30
+
- fix: MSSQL connection left in busy state after insert (#2171)
24
31
- ``db_default`` on ``ForeignKeyField``/``OneToOneField`` now propagates to the underlying ``<fk>_id`` column, so ``CREATE TABLE`` emits the ``DEFAULT`` clause for FK columns. (#2199)
32
+
- Fix ``db_default`` on FK/O2O dropped during ``_init_relations`` (#2200)
25
33
- ``MigrationRecorder`` no longer emits tortoise's own ``pk`` field ``DeprecationWarning`` when applying migrations; it now builds its bookkeeping model with ``primary_key=True``. (#2203)
26
34
- ``QuerySet.count()`` now matches the limited query result for the LIMIT/OFFSET edge cases: it returns ``0`` (instead of a negative number) when ``offset()`` exceeds the total row count, and ``0`` (instead of the total) for ``limit(0)``. (#2208)
35
+
- tests: cover Q inequality and unhashable behavior (#2214)
27
36
- Field declarations on models now resolve to their concrete type (e.g. ``CharField[str]``) in Pyright/Pylance instead of ``Field[Unknown]``; the ``Field.__new__`` type-check stub now returns ``Self``. (#2216)
28
-
- ``TransactionContext`` now returns a ``TransactionalDBClient`` instead of a raw database connection. This change gives the correct inferred type for the transaction context. (#2232)
29
-
37
+
- Type hint for ``TransactionContext`` now returns a ``TransactionalDBClient`` instead of a raw database connection. This change gives the correct inferred type for the transaction context. (#2232)
38
+
- Fix TSVectorField returned value conversion. (#2237)
0 commit comments