Repository navigation
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_deletewas changed on aForeignKey, thenon_updatecould be reset (and vice versa). Thanks to @PDGGK for this. insertnow raises aValueErrorif 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
AtTimeZonedocs to use'America/New_York'instead of the deprecated'EST'.