summaryrefslogtreecommitdiff
path: root/django/templatetags
diff options
context:
space:
mode:
authorsaeedblanchette <saiidblanchettel@outlook.com>2021-06-08 17:00:00 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-06-10 12:47:53 +0200
commit66ed03e7c9ae4cd754aa918c6f4c9227cf424141 (patch)
treec8df099f407702b7552d7421a8b2defdbbe01138 /django/templatetags
parentcb6c19749d342c3dc0f97d89ff6887b220cf45b8 (diff)
Refs #24121 -- Added __repr__() to AdminForm, BlockContext, BlockTranslateNode, and IncludeNode.
Diffstat (limited to 'django/templatetags')
-rw-r--r--django/templatetags/i18n.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/django/templatetags/i18n.py b/django/templatetags/i18n.py
index 93023f3109..60d8c8046b 100644
--- a/django/templatetags/i18n.py
+++ b/django/templatetags/i18n.py
@@ -112,6 +112,13 @@ class BlockTranslateNode(Node):
self.asvar = asvar
self.tag_name = tag_name
+ def __repr__(self):
+ return (
+ f'<{self.__class__.__qualname__}: '
+ f'extra_context={self.extra_context!r} '
+ f'singular={self.singular!r} plural={self.plural!r}>'
+ )
+
def render_token_list(self, tokens):
result = []
vars = []