1
0
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:
DevilsAutumn
2022-10-30 22:21:54 +05:30
committed by Mariusz Felisiak
parent 6103059592
commit d5bcdf858d
6 changed files with 86 additions and 0 deletions

View File

@@ -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
~~~~~~~~~~~~~~~~~~~~~~