Added the missing expanding parameters to CachedRetrieveModelMixin.
All checks were successful
StarFields Django Rest Framework Generics / build (push) Successful in 13s

This commit is contained in:
2024-08-17 16:12:48 +03:00
parent dcf3b3990b
commit dad7aa8348

View File

@@ -41,7 +41,7 @@ class CachedRetrieveModelMixin(CacheGetMixin, CacheSetMixin):
to inherit anything from it.
"""
def retrieve(self, request):
def retrieve(self, request, *args, **kwargs):
" Retrieves the entry in the request "
# Attempt to get the request from the cache
cache_attempt = self.get_cache(request)