Skip to content

Commit

Permalink
Use functools.lru_cache over django.utils.lru_cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
lamby committed Sep 24, 2019
1 parent edf5444 commit cfb05a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_enumfield/context_processors.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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")

Expand Down

0 comments on commit cfb05a6

Please sign in to comment.