1
0
mirror of https://github.com/django/django.git synced 2025-06-08 13:09:13 +00:00

feat: apply changes from review suggestions

Co-authored-by: Paolo Melchiorre <paolo@melchiorre.org>
Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
This commit is contained in:
Keerthi Vasan S A 2024-02-23 20:24:23 +05:30 committed by GitHub
parent 03c45aa696
commit c7f0d1f0bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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":