Skip to content

Releases: tortoise/tortoise-orm

v0.15.16

25 Feb 09:14
Compare
Choose a tag to compare
  • get_or_none(...) now raises MultipleObjectsReturned if multiple object fetched. (#298)

v0.15.15

22 Feb 10:34
Compare
Choose a tag to compare
  • Add ability to suppply a to_field= parameter for FK/O2O to a non-PK but still uniquely indexed remote field. (#287)

v0.15.14

21 Feb 06:46
Compare
Choose a tag to compare
  • add F expression support in queryset.update() - This allows for atomic updates of data in the database. (#294)

v0.15.13

15 Feb 19:44
Compare
Choose a tag to compare
  • Applies default ordering on related queries
  • Fix post-ManyToMany related queries not being evaluated correctly
  • Ordering is now preserved on ManyToMany related fetches
  • Fix aggregate function on joined table to use correct primary key (#292)
  • Fix filtering by backwards FK to use correct primary key

v0.15.12

11 Feb 08:47
Compare
Choose a tag to compare
  • Added range filter to support between and syntax

0.15.11

10 Feb 19:14
f277a70
Compare
Choose a tag to compare
  • Added ordering option for model Meta class to apply default ordering (#288)

v0.15.10

10 Feb 09:25
Compare
Choose a tag to compare
  • Bumped requirements to cater for newer feature use (#282)

v0.15.9

19 Jan 06:53
Compare
Choose a tag to compare
  • Alias Foreign Key joins as we can have both self-referencing and duplicate joins to the same table.
    This generates SQL that differentiates between which instance of the table to work with. (#275)

v0.15.8

17 Jan 19:41
Compare
Choose a tag to compare
  • TextField now recommends usage of CharField if wanting unique indexing instead of just saying "indexing not supported"
  • .count() now honours offset and limit (#167)
  • Testing un-awaited ForeignKeyField as a boolean expression will automatically resolve as False if it is None (#274)
  • Awaiting a nullable ForeignKeyField won't touch the DB if it is None (#274)

v0.15.7

28 Dec 05:24
Compare
Choose a tag to compare
  • QuerySet.Update() now returns the count of the no of rows affected. Note, that
  • QuerySet.Delete() now returns the count of the no of rows deleted.
  • Note that internal API of db_connection.execute_query() now returns rows_affected, results. (This is informational only)
  • Added get_or_none(...) as syntactic sugar for filter(...).first()