1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Refs #32355 -- Used @functools.lru_cache as a straight decorator.

This commit is contained in:
Mariusz Felisiak
2021-09-27 09:10:58 +02:00
committed by GitHub
parent 840ad06300
commit 5bac1719a2
12 changed files with 15 additions and 15 deletions

View File

@@ -8,7 +8,7 @@ from django.utils.functional import cached_property
from django.utils.module_loading import import_string
@functools.lru_cache()
@functools.lru_cache
def get_default_renderer():
renderer_class = import_string(settings.FORM_RENDERER)
return renderer_class()