mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #24141 -- Added QuerySet.contains().
This commit is contained in:
parent
286fb73b69
commit
d01709aae2
7 changed files with 132 additions and 18 deletions
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue