Fixed #24141 -- Added QuerySet.contains().

This commit is contained in:
Johan Schiff 2020-06-09 11:23:31 +02:00 committed by Mariusz Felisiak
parent 286fb73b69
commit d01709aae2
7 changed files with 132 additions and 18 deletions

View file

@ -216,7 +216,9 @@ Migrations
Models
~~~~~~
* ...
* New :meth:`QuerySet.contains(obj) <.QuerySet.contains>` method returns
whether the queryset contains the given object. This tries to perform the
query in the simplest and fastest way possible.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~