mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Removed django.utils.lru_cache usage.
This commit is contained in:
parent
83c2bc52c2
commit
0367bc6d04
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
import uuid
|
||||
|
||||
from django.utils import lru_cache
|
||||
from functools import lru_cache
|
||||
|
||||
|
||||
class IntConverter:
|
||||
|
@ -58,7 +57,7 @@ def register_converter(converter, type_name):
|
|||
get_converters.cache_clear()
|
||||
|
||||
|
||||
@lru_cache.lru_cache(maxsize=None)
|
||||
@lru_cache(maxsize=None)
|
||||
def get_converters():
|
||||
return {**DEFAULT_CONVERTERS, **REGISTERED_CONVERTERS}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue