From 6fa2930573ff862a7f8ae8a11aa8bb7253fddeb7 Mon Sep 17 00:00:00 2001 From: Jonny Park Date: Fri, 26 Mar 2021 16:14:09 +0900 Subject: Refs #24121 -- Added __repr__() to BaseDatabaseWrapper, JoinPromoter, and SQLCompiler. --- django/db/models/sql/query.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'django/db/models/sql/query.py') 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 -- cgit v1.3