mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #34112 -- Added async-compatible interface to Model methods.
Thanks Adam Johnson for the review.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6103059592
commit
d5bcdf858d
@@ -239,6 +239,10 @@ Models
|
||||
* :class:`F() <django.db.models.F>` expressions that output ``BooleanField``
|
||||
can now be negated using ``~F()`` (inversion operator).
|
||||
|
||||
* ``Model`` now provides asynchronous versions of some methods that use the
|
||||
database, using an ``a`` prefix: :meth:`~.Model.adelete`,
|
||||
:meth:`~.Model.arefresh_from_db`, and :meth:`~.Model.asave`.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user