diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 9295fdcf9c..631dd6908f 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -974,7 +974,7 @@ def phone2numeric_filter(value): @register.filter(is_safe=True) -def pprint(v): +def pprint(value): repr_instance = DjangoRepr() repr_instance.config(limit=EXCEPTION_PRINT_LIMIT) diff --git a/django/utils/repr.py b/django/utils/repr.py index 567b70903b..07fb4369c4 100644 --- a/django/utils/repr.py +++ b/django/utils/repr.py @@ -5,7 +5,7 @@ import reprlib class DjangoRepr(reprlib.Repr): def config(self, limit): - """Sets maximum print length for all data structures using the given value""" + """Set maximum print length for all data structures to `limit`.""" self.limit = limit for attr in dir(self): if attr.startswith("max") and attr != "maxlevel":