Skip to content

Commit

Permalink
Fix typo in consumers documentation (#1600)
Browse files Browse the repository at this point in the history
A note in the consumers  documentation contredicted the right phrasing in the database documentation. One does not need to use `database_sync_to_async` in synchronous code.
  • Loading branch information
Coronon committed Dec 28, 2020
1 parent e85874d commit 5b5b2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/consumers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ callable into an asynchronous coroutine.
.. important::

If you want to call the Django ORM from an ``AsyncConsumer`` (or any other
synchronous code), you should use the ``database_sync_to_async`` adapter
asynchronous code), you should use the ``database_sync_to_async`` adapter
instead. See :doc:`/topics/databases` for more.


Expand Down

0 comments on commit 5b5b2d0

Please sign in to comment.