3.7.1
New features
- Added
table_settings
modelMeta
option, which should be a list of strings specifying additional options forCREATE TABLE
, which are placed after the closing parentheses. - Allow specification of
on_update
andon_delete
behavior for many-to-many relationships when usingManyToManyField
.
Bugfixes
- Fixed incorrect SQL generation for Postgresql ON CONFLICT clause when the conflict_target is a named constraint (rather than an index expression). This introduces a new keyword-argument to the
on_conflict()
method:conflict_constraint
, which is currently only supported by Postgresql. Refs issue #1737. - Fixed incorrect SQL for sub-selects used on the right side of
IN
expressions. Previously the query would be assigned an alias, even though an alias was not needed. - Fixed incorrect SQL generation for Model indexes which contain SQL functions as indexed columns.
- Fixed bug in the generation of special queries used to perform operations on SQLite FTS5 virtual tables.
- Allow
frozenset
to be correctly parameterized as a list of values. - Allow multi-value INSERT queries to specify
columns
as a list of strings. - Support
CROSS JOIN
for model select queries.