Skip to content

1.40.0

Latest

Choose a tag to compare

@dantownsend dantownsend released this 03 Dec 14:01
· 1 commit to master since this release

Frozen query improvements

Fixed some bugs with the output clause on frozen queries. The callback clause can now be used with frozen queries, and frozen queries can now be awaited directly:

TOP_BANDS = Band.select(Band.name).limit(10).freeze()

>>> await TOP_BANDS  # Equivalent to `await TOP_BANDS.run()`

Thanks to @mmporong for this.

Other changes

  • Fixed a bug with auto migrations - if on_delete was changed on a ForeignKey, then on_update could be reset (and vice versa). Thanks to @PDGGK for this.
  • insert now raises a ValueError if no rows are specified (thanks to @mmporong for this).
  • Fixed a bug with .ne(None) - an exception was being raised (thanks to @SammyRyuga for this).
  • Removed unused code (thanks to @duriantaco for this).
  • Fixed dead CockroachDB links in the docs (thanks to @sarankumar1325 for this).
  • Fixed timezone related test failures, and updated the AtTimeZone docs to use 'America/New_York' instead of the deprecated 'EST'.