diff options
| author | Jonny Park <jonnythebard9@gmail.com> | 2021-03-26 16:14:09 +0900 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-11-19 07:57:02 +0100 |
| commit | 6fa2930573ff862a7f8ae8a11aa8bb7253fddeb7 (patch) | |
| tree | ff653eb83f687bb48ed479c6ba5106ea59c0fec4 /django/db/backends | |
| parent | 5e218cc0b704ebf64c460050a97b5fafe63e92b0 (diff) | |
Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.
Diffstat (limited to 'django/db/backends')
| -rw-r--r-- | django/db/backends/base/base.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/base/base.py b/django/db/backends/base/base.py index df378b30d5..14b2623414 100644 --- a/django/db/backends/base/base.py +++ b/django/db/backends/base/base.py @@ -120,6 +120,12 @@ class BaseDatabaseWrapper: self.ops = self.ops_class(self) self.validation = self.validation_class(self) + def __repr__(self): + return ( + f'<{self.__class__.__qualname__} ' + f'vendor={self.vendor!r} alias={self.alias!r}>' + ) + def ensure_timezone(self): """ Ensure the connection's timezone is set to `self.timezone_name` and |
