Improve Queryset.get to avoid confusing message in case multiple match are found

This commit is contained in:
Bastien Gérard
2020-03-22 14:05:04 +01:00
parent f49baf5d90
commit 2b0157aecd
3 changed files with 30 additions and 12 deletions

View File

@@ -7,6 +7,7 @@ Development
===========
- (Fill this out as you fix issues and develop your features).
- Add Mongo 4.0 to Travis
- Improve Queryset.get to avoid confusing MultipleObjectsReturned message in case multiple match are found #630
- Fixed a bug causing inaccurate query results, while combining ``__raw__`` and regular filters for the same field #2264
- Add support for the `elemMatch` projection operator in .fields() (e.g BlogPost.objects.fields(elemMatch__comments="test")) #2267
- DictField validate failed without default connection (bug introduced in 0.19.0) #2239