Skip to content

Releases: tortoise/tortoise-orm

0.17.4

03 Jun 03:48
Compare
Choose a tag to compare
  • Quick fix update_or_create. (#782)

0.17.3

22 May 15:34
Compare
Choose a tag to compare
  • Fix duplicates when using custom through association class on M2M relations
  • Fix update_or_create and get_or_create. (#721)
  • Fix refresh_from_db without fields pass. (#734)
  • Make update query work with limit and order_by. (#748)
  • Add Subquery expression. (#756) (#9) (#337)
  • Use JSON in JSONField.

0.17.2

09 Apr 15:46
08a3ee3
Compare
Choose a tag to compare
  • Add more index types.
  • Add force_index, use_index to queryset.
  • Fix F in update error with update_fields.
  • Make delete query work with limit and order_by. (#697)
  • Filter backward FK fields with IS NULL and NOT IS NULL filters (#700)
  • Add select_for_update in update_or_create. (#702)
  • Add Model.select_for_update.
  • Add __search full text search to queryset.

0.17.1

27 Mar 06:42
Compare
Choose a tag to compare
  • Fix type for modules.
  • Fix select_related when related model specified more than once. (#679)
  • Add __iter__ to model, now can just return model/models in fastapi response.
  • Fix in_transaction bug caused by router. (#677) (#678)

0.17.0

20 Mar 16:12
Compare
Choose a tag to compare
  • Add date part extract filtering.
  • Add Manager support.
  • Add db router support.
  • Add nowait, skip_locked, of parameters to queryset.select_for_update.
  • Add field name to validation exceptions.
  • Compatible with asyncmy.
  • Replace pypika to pypika-tortoise.

0.16.21

04 Feb 12:03
Compare
Choose a tag to compare
  • Fixed validating JSON before decoding. (#623)
  • Add model method update_or_create.
  • Add batch_size parameter for bulk_create method.
  • Fix save with F expression and field with source_field.

0.16.20

23 Jan 03:17
Compare
Choose a tag to compare
  • Add model field validators.
  • Allow function results in group by. (#608)

0.16.19

23 Dec 07:57
7693805
Compare
Choose a tag to compare
  • Replace set TZ environment variable to TIMEZONE to avoid affecting global timezone.
  • Allow passing module objects to models_paths param of Tortoise.init_models(). (#561)
  • Implement PydanticMeta.backward_relations. (#536)
  • Allow overriding PydanticMeta in PydanticModelCreator. (#536)
  • Fixed make_native typo to make_naive in timezone module

0.16.18

16 Nov 13:17
Compare
Choose a tag to compare
  • Support custom function in update. (#537)
  • Add Model.refresh_from_db. (#549)
  • Add timezone support, be careful to upgrade to this version, see docs for details. (#335)
  • Remove aerich in case of cyclic dependency. (#558)

0.16.17

23 Oct 16:37
Compare
Choose a tag to compare
  • Add on_delete in ManyToManyField. (#508)
  • Support F expression in annotate. (#475)
  • Fix QuerySet.select_related in case of join same table twice. (#525)
  • Integrate Aerich into the install. (#530)