Skip to content

Commit dda5e24

Browse files
authored
Prepare 0.12.0 release (#892)
1 parent 513fd32 commit dda5e24

File tree

5 files changed

+254
-712
lines changed

5 files changed

+254
-712
lines changed

docs/releases.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# 0.12.0
2+
3+
## ✨ Breaking Changes
4+
5+
* `Queryset.bulk_create` will now raise `ModelListEmptyError` on empty list of models (by @ponytailer - thanks!) [#853](https://github.com/collerek/ormar/pull/853)
6+
7+
## ✨ Features
8+
* `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.
9+
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)
10+
11+
## 🐛 Fixes
12+
13+
* Fix for empty relations breaking `construct` method (by @Abdeldjalil-H - thanks!) [#870](https://github.com/collerek/ormar/issues/870)
14+
* Fix save related not saving models with already set pks (including uuid) [#885](https://github.com/collerek/ormar/issues/885)
15+
* Fix for wrong relations exclusions depending on the order of exclusions [#779](https://github.com/collerek/ormar/issues/779)
16+
* Fix `property_fields` not being inherited properly [#774](https://github.com/collerek/ormar/issues/774)
17+
118
# 0.11.3
219

320
## ✨ Features

0 commit comments

Comments
 (0)