Peewee v3.5.1 Release Notes

  • ๐Ÿ†• New features

    • ๐Ÿ†• New documentation for working with relationships in Peewee.
    • ๐Ÿ‘Œ Improved tests and documentation for MySQL upsert functionality.
    • ๐Ÿ‘ Allow database parameter to be specified with ModelSelect.get() method. For discussion, see #1620.
    • โž• Add QualifiedNames helper to peewee module exports.
    • โž• Add temporary= meta option to support temporary tables.
    • ๐Ÿ‘ Allow a Database object to be passed to constructor of DataSet helper.

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  Fixed edge-case where attempting to alias a field to it's underlying column-name (when different), Peewee would not respect the alias and use the field name instead. See #1625 for details and discussion.
    • Raise a ValueError when joining and aliasing the join to a foreign-key's object_id_name descriptor. Should prevent accidentally introducing O(n) queries or silently ignoring data from a joined-instance.
    • ๐Ÿ›  Fixed bug for MySQL when creating a foreign-key to a model which used the BigAutoField for it's primary-key.
    • ๐Ÿ›  Fixed bugs in the implementation of user-defined aggregates and extensions with the APSW SQLite driver.
    • Fixed regression introduced in 3.5.0 which ignored custom Model __repr__().
    • ๐Ÿ›  Fixed regression from 2.x in which inserting from a query using a SQL() was no longer working. Refs #1645.

    View commits