File: 2.0.2.rst

package info (click to toggle)
python-django-channels 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 872 kB
  • sloc: python: 2,394; makefile: 154; sh: 8
file content (30 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2.0.2 Release Notes
===================

Channels 2.0.2 is a patch release of Channels, fixing a bug in the database
connection handling.

As always, when updating Channels make sure to also update its dependencies
(``asgiref`` and ``daphne``) as these also get their own bugfix updates, and
some bugs that may appear to be part of Channels are actually in those packages.


New Features
------------

* There is a new ``channels.db.database_sync_to_async`` wrapper that is like
  ``sync_to_async`` but also closes database connections for you. You can
  read more about usage in :doc:`/topics/databases`.


Bugfixes
--------

* SyncConsumer and all its descendant classes now close database connections
  when they exit.


Backwards Incompatible Changes
------------------------------

None.