From 23db9b61289dde4a107c111d4bd01d2a850b1f3c Mon Sep 17 00:00:00 2001 From: Ehsan200 Date: Sat, 10 Jun 2023 15:09:57 +0330 Subject: [PATCH] fix: Remove functools.cached_property and use django.cached_property --- rest_framework/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/views.py b/rest_framework/views.py index c72033547..ecce54419 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -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