Visitar URL original
docs: add release note for get() after exclude() fix (#1865) (#1868) · ormar-orm/ormar@5d64ae9 · GitHub
Skip to content

Commit 5d64ae9

Browse files
authored
docs: add release note for get() after exclude() fix (#1865) (#1868)
1 parent f5bd14c commit 5d64ae9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎docs/releases.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464

6565
### 🐛 Fixes
6666

67+
* Fix `get()` after `exclude()` returning the last row instead of raising
68+
`MultipleMatches` when several rows match. A queryset narrowed only by
69+
`exclude()` was treated as unfiltered; code relying on `exclude(...).get()`
70+
returning the last row should add a `filter()` or use `first()`/`last()`.
71+
[#1858](https://github.com/ormar-orm/ormar/issues/1858)
6772
* Fix `bulk_update()` writing encrypted fields as plain text. The update now
6873
runs as a SQLAlchemy statement, so column types process the values like in
6974
`save()` and `update()`.

0 commit comments

Comments
 (0)