diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-05-12 11:54:29 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-13 12:01:07 +0200 |
| commit | d3677043fce0fec5d082e8cae142d5e5df35a2b5 (patch) | |
| tree | 4f6d2a82cfe7dbc3829c834e01940ce3387f9ec8 /django/db/utils.py | |
| parent | c112f837d4960b68e912e23139bb97ef01c870a6 (diff) | |
Added backward compatibility test for ConnectionHandler.databases property.
The ConnectionHandler.databases property is no longer used within
Django, but it is maintained for backward compatibility with 3rd party
packages that have used this private API in the past.
Diffstat (limited to 'django/db/utils.py')
| -rw-r--r-- | django/db/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/db/utils.py b/django/db/utils.py index 3ad83b52ff..e45f1db249 100644 --- a/django/db/utils.py +++ b/django/db/utils.py @@ -183,6 +183,9 @@ class ConnectionHandler(BaseConnectionHandler): @property def databases(self): + # Maintained for backward compatibility as some 3rd party packages have + # made use of this private API in the past. It is no longer used within + # Django itself. return self.settings def create_connection(self, alias): |
