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

Refs #23919 -- Stopped using django.utils.lru_cache().

This commit is contained in:
Aymeric Augustin
2017-01-18 21:30:21 +01:00
committed by Tim Graham
parent 2b281cc35e
commit 3cc5f01d9b
21 changed files with 52 additions and 216 deletions

View File

@@ -1,9 +1,9 @@
import functools
import os
from django.conf import settings
from django.template.backends.django import DjangoTemplates
from django.template.loader import get_template
from django.utils import lru_cache
from django.utils._os import upath
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
@@ -17,7 +17,7 @@ except ImportError:
ROOT = upath(os.path.dirname(__file__))
@lru_cache.lru_cache()
@functools.lru_cache()
def get_default_renderer():
renderer_class = import_string(settings.FORM_RENDERER)
return renderer_class()