Skip to content

Releases: collerek/ormar

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

14 Jan 22:45
6ec4825
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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

Add multi columns non unique index and sql_nullable property. Important performance boost with relation map.

13 Sep 14:18
14b1700
Compare
Choose a tag to compare

0.10.19

✨ Features

  • Add support for multi-column non-unique IndexColumns in Meta.constraints #307
  • Add sql_nullable field attribute that allows to set different nullable setting for pydantic model and for underlying sql column #308

🐛 Fixes

  • Enable caching of relation map to increase performance #337
  • Clarify and fix documentation in regard of nullable fields #339

💬 Other

  • Bump supported databases version to <=5.2.

Bug fixes

01 Sep 10:13
bccc47f
Compare
Choose a tag to compare

0.10.18

🐛 Fixes

  • Fix order of fields in pydantic models #328
  • Fix databases 0.5.0 support #142

Add overwrite for pydantic field, support sqlalchemy >=1.4

30 Aug 07:55
47f2d61
Compare
Choose a tag to compare

0.10.17

✨ Features

  • Allow overwriting the default pydantic type for model fields #312
  • Add support for sqlalchemy >=1.4 (requires databases >= 0.5.0) #142

SmallInterger field type, ability to pass own pydantic config

06 Aug 14:11
5bd7b66
Compare
Choose a tag to compare

0.10.16

✨ Features

🐛 Fixes

  • Fix generating openapi schema by removing obsolete pydantic field parameters that were directly exposed in schema #291
  • Fix unnecessary warning for auto generated through models #295

Bug fixes

21 Jul 12:44
6d0e991
Compare
Choose a tag to compare

0.10.15

🐛 Fixes

  • Fix generating pydantic models tree with nested models (by @pawamoy - thanks!) #278
  • Fix missing f-string in warning about missing primary key field #274
  • Fix passing foreign key value as relation (additional guard, fixed already in the latest release) #270