fix: Remove functools.cached_property and use django.cached_property

This commit is contained in:
Ehsan200 2023-06-10 15:09:57 +03:30
parent 175f9118e9
commit 23db9b6128

View File

@ -1,7 +1,6 @@
"""
Provides an APIView class that is the base of all views in REST framework.
"""
from functools import cached_property
from django.conf import settings
from django.core.exceptions import PermissionDenied
@ -10,6 +9,7 @@ from django.http import Http404
from django.http.response import HttpResponseBase
from django.utils.cache import cc_delim_re, patch_vary_headers
from django.utils.encoding import smart_str
from django.utils.functional import cached_property
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View