Skip to content

Releases: ormar-orm/ormar

CheckColumn constraint, ReferentialAction and bug fixes

07 Sep 10:56
3cd33e6

Choose a tag to compare

0.11.3

✨ Features

  • Document onupdate and ondelete referential actions in ForeignKey and provide ReferentialAction enum to specify the behavior of the relationship (by @SepehrBazyar - thanks!) #724
  • Add CheckColumn to supported constraints in models Meta (by @SepehrBazyar - thanks!) #729

🐛 Fixes

  • Fix limiting query result to 0 should return empty list (by @SepehrBazyar - thanks!) #766

💬 Other

Bug fixes and packaging fix

26 Jun 17:37
6af92aa

Choose a tag to compare

0.11.2

🐛 Fixes

  • Fix database drivers being required, while they should be optional #713
  • Fix boolean field problem in limit queries in postgres without limit_raw_sql flag #704
  • Fix enum_class spilling to schema causing errors in OpenAPI #699

Fix deepcopy issues for pydantic >=1.9

08 Jun 17:20
4d76934

Choose a tag to compare

0.11.1

🐛 Fixes

  • Fix deepcopy issues introduced in pydantic 1.9 #685

Add python 3.10 support, drop python 3.6 and minor fixes/changes

28 Mar 16:49
90f78e2

Choose a tag to compare

0.11.0

✨ Breaking Changes

  • Dropped support for python 3.6
  • Queryset.get_or_create returns now a tuple with model and bool value indicating if the model was created (by @mojixcoder - thanks!) #554
  • Queryset.count() now counts the number of distinct parent model rows by default, counting all rows is possible by setting distinct=False (by @erichaydel - thanks) #588

✨ Features

  • Added support for python 3.10

🐛 Fixes

  • Fix inconsistent JSON fields behaviour in save and bulk_create #584
  • Fix maximum recursion error #580

Add plugable queryset_class, enhance IndexColumns and bug fixes

25 Feb 11:18
989e11e

Choose a tag to compare

0.10.25

✨ Features

  • Add queryset_class option to Model.Meta that allows you to easily swap QuerySet for your Model (by @ponytailer - thanks!) #538
  • Allow passing extra kwargs to IndexColumns that will be passed to sqlalchemy Index (by @zevisert - thanks) #575

🐛 Fixes

  • Fix nullable setting on JSON fields #529
  • Fix bytes/str mismatch in bulk operations when using orjson instead of json (by @ponytailer - thanks!) #538

Add support for pydantic 1.9, add post_bulk_update signal, and bug fixes

14 Jan 22:45
6ec4825

Choose a tag to compare

0.10.24

✨ Features

🐛 Fixes

💬 Other

  • Improve performance of bulk_create by bypassing databases execute_many suboptimal implementation. (by @Mng-dev-ai thanks!) #520
  • Bump min. required databases version for sqlalchemy 1.4 to >=5.4.

Add column comments and bugfixes

16 Dec 17:40
27e5484

Choose a tag to compare

0.10.23

✨ Features

  • Add ability to pass comment to sqlalchemy when creating a column #485

🐛 Fixes

  • Fix LargeBinary fields that can be nullable #409
  • Make ormar.Model pickable #413
  • Make first() and get() without arguments respect ordering of main model set by user, fallback to primary key (asc, and desc respectively) #453
  • Fix improper quoting of non-aliased join on clauses in postgress #455

Fix for validators inheritance

15 Oct 08:55
5e946f5

Choose a tag to compare

0.10.22

🐛 Fixes

  • Hot fix for validators not being inherited when parent ormar model was set #365

Added construct and validators in generated pydantic models

13 Oct 11:59
b66edca

Choose a tag to compare

0.10.21

🐛 Fixes

  • Add ormar implementation of construct classmethod that allows to build Model instances without validating the input to speed up the whole flow, if your data is already validated #318
  • Fix for "inheriting" field validators from ormar model when newly created pydanic model is generated with get_pydantic #365

Add extra to ignore extra fields, fix around handling None and nullable

26 Sep 12:27
fc06759

Choose a tag to compare

0.10.20

✨ Features

  • Add extra parameter in Model.Meta that accepts Extra.ignore and Extra.forbid (default) and either ignores the extra fields passed to ormar model or raises an exception if one is encountered #358

🐛 Fixes

  • Allow None if field is nullable and have choices set #354
  • Always set primary_key to not null regardless of autoincrement and explicit nullable setting to avoid problems with migrations #348