mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24141 -- Added QuerySet.contains().
This commit is contained in:
committed by
Mariusz Felisiak
parent
286fb73b69
commit
d01709aae2
@@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user