mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Merge pull request #4139 from gasman/cleanup/lru_cache
Replace use of django.utils.lru_cache with functools.lru_cache
This commit is contained in:
commit
06833b3e09
2 changed files with 3 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
from functools import lru_cache
|
||||
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.http import Http404
|
||||
from django.shortcuts import get_object_or_404, redirect, render
|
||||
from django.utils.lru_cache import lru_cache
|
||||
from django.utils.text import capfirst
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
from functools import lru_cache
|
||||
import os
|
||||
|
||||
from django.core.checks import Warning, register
|
||||
from django.utils.lru_cache import lru_cache
|
||||
from willow.image import Image
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue