github coleifer/peewee 3.5.1

latest releases: 3.14.10, 3.14.9, 3.14.8...
5 years ago

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

Don't miss a new peewee release

NewReleases is sending notifications on new releases.