From cfb05a686c0d53ef44a5ac39dd92f8fd0ce8d118 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 24 Sep 2019 09:50:01 +0100 Subject: [PATCH] Use functools.lru_cache over django.utils.lru_cache. --- django_enumfield/context_processors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_enumfield/context_processors.py b/django_enumfield/context_processors.py index 97e124b..e7b0a35 100644 --- a/django_enumfield/context_processors.py +++ b/django_enumfield/context_processors.py @@ -1,7 +1,7 @@ import inspect +import functools from django.apps import apps -from django.utils.lru_cache import lru_cache from .enum import Enum from .utils import TemplateErrorDict @@ -13,7 +13,7 @@ def enumfield_context(*args, **kwargs): return {"enums": get_enums()} -@lru_cache() +@functools.lru_cache() def get_enums(): result = TemplateErrorDict("Unknown app name %s")