summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2017-01-18 21:30:21 +0100
committerTim Graham <timograham@gmail.com>2017-01-18 21:42:40 -0500
commit3cc5f01d9bd52930cec3c08d6ec7e19d0c2a6489 (patch)
treefa14ed86804a78c91cf62dfeba328cdf6d43359e /django/forms
parent2b281cc35ed9d997614ca3c416928d7fabfef1ad (diff)
Refs #23919 -- Stopped using django.utils.lru_cache().
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/renderers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/forms/renderers.py b/django/forms/renderers.py
index d0b3c3e2db..2c31d7adc5 100644
--- a/django/forms/renderers.py
+++ b/django/forms/renderers.py
@@ -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()