diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-27 09:10:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 09:10:58 +0200 |
| commit | 5bac1719a2fcbee5cb8b9e22c3480e3a24ed6c4c (patch) | |
| tree | 52fa4da11d16e934345efbbac1b8dde9b85ff876 /django/views/debug.py | |
| parent | 840ad06300ac38e0e0e18ea36d6969cc03c875a9 (diff) | |
Refs #32355 -- Used @functools.lru_cache as a straight decorator.
Diffstat (limited to 'django/views/debug.py')
| -rw-r--r-- | django/views/debug.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index 16c9ad7fc8..da9a17e60f 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -69,7 +69,7 @@ def technical_500_response(request, exc_type, exc_value, tb, status_code=500): return HttpResponse(text, status=status_code, content_type='text/plain; charset=utf-8') -@functools.lru_cache() +@functools.lru_cache def get_default_exception_reporter_filter(): # Instantiate the default filter for the first time and cache it. return import_string(settings.DEFAULT_EXCEPTION_REPORTER_FILTER)() |
