Skip to content

Commit

Permalink
Prepare 0.12.0 release (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Oct 21, 2022
1 parent 513fd32 commit dda5e24
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 712 deletions.
17 changes: 17 additions & 0 deletions docs/releases.md
@@ -1,3 +1,20 @@
# 0.12.0

## ✨ Breaking Changes

* `Queryset.bulk_create` will now raise `ModelListEmptyError` on empty list of models (by @ponytailer - thanks!) [#853](https://github.com/collerek/ormar/pull/853)

## ✨ Features
* `Model.upsert()` now handles a flag `__force_save__`: `bool` that allow upserting the models regardless of the fact if they have primary key set or not.
Note that setting this flag will cause two queries for each upserted model -> `get` to check if model exists and later `update/insert` accordingly. [#889](https://github.com/collerek/ormar/pull/853)

## 🐛 Fixes

* Fix for empty relations breaking `construct` method (by @Abdeldjalil-H - thanks!) [#870](https://github.com/collerek/ormar/issues/870)
* Fix save related not saving models with already set pks (including uuid) [#885](https://github.com/collerek/ormar/issues/885)
* Fix for wrong relations exclusions depending on the order of exclusions [#779](https://github.com/collerek/ormar/issues/779)
* Fix `property_fields` not being inherited properly [#774](https://github.com/collerek/ormar/issues/774)

# 0.11.3

## ✨ Features
Expand Down

0 comments on commit dda5e24

Please sign in to comment.