summaryrefslogtreecommitdiff
path: root/django/db/backends
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends')
-rw-r--r--django/db/backends/base/base.py6
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