mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #35226 -- Reallowed executing queries for dynamically created connections.
Regression in 8fb0be3500.
Thanks Florian Apolloner for the report.
This commit is contained in:
@@ -280,6 +280,8 @@ class SimpleTestCase(unittest.TestCase):
|
||||
self.connection is None
|
||||
and self.alias not in cls.databases
|
||||
and self.alias != NO_DB_ALIAS
|
||||
# Dynamically created connections are always allowed.
|
||||
and self.alias in connections
|
||||
):
|
||||
# Connection has not yet been established, but the alias is not allowed.
|
||||
message = cls._disallowed_database_msg % {
|
||||
|
||||
Reference in New Issue
Block a user