mirror of
https://github.com/django/django.git
synced 2025-08-16 08:40:28 +00:00
[5.0.x] Fixed #34903, Refs #34825 -- Made workers initialization respect empty set of used connections.
Thanks to David Smith for the investigation & patch. Regression in2128a73713
. Follow up toa5905b164d
. Co-authored-by: David Sanders <shang.xiao.sanders@gmail.com> Backport of68d0159b6d
from main
This commit is contained in:
parent
4dec7eded9
commit
08aa336af4
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ def _init_worker(
|
|||
django.setup()
|
||||
setup_test_environment(debug=debug_mode)
|
||||
|
||||
db_aliases = used_aliases or connections
|
||||
db_aliases = used_aliases if used_aliases is not None else connections
|
||||
for alias in db_aliases:
|
||||
connection = connections[alias]
|
||||
if start_method == "spawn":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue