summaryrefslogtreecommitdiff
path: root/django/db/models/sql/query.py
diff options
context:
space:
mode:
authorJonny Park <jonnythebard9@gmail.com>2021-03-26 16:14:09 +0900
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-11-19 07:57:02 +0100
commit6fa2930573ff862a7f8ae8a11aa8bb7253fddeb7 (patch)
treeff653eb83f687bb48ed479c6ba5106ea59c0fec4 /django/db/models/sql/query.py
parent5e218cc0b704ebf64c460050a97b5fafe63e92b0 (diff)
downloaddjango-6fa2930573ff862a7f8ae8a11aa8bb7253fddeb7.tar.gz
Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler.
Diffstat (limited to 'django/db/models/sql/query.py')
-rw-r--r--django/db/models/sql/query.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 2c5f11cbbf..faca57da56 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -2393,6 +2393,12 @@ class JoinPromoter:
# inner and/or outer joins.
self.votes = Counter()
+ def __repr__(self):
+ return (
+ f'{self.__class__.__qualname__}(connector={self.connector!r}, '
+ f'num_children={self.num_children!r}, negated={self.negated!r})'
+ )
+
def add_votes(self, votes):
"""
Add single vote per item to self.votes. Parameter can be any