Refactored the library a bit and added a .gitignore file.

This commit is contained in:
2025-01-05 10:13:59 +02:00
parent ac7ea3c88f
commit 1e0f3c694e
11 changed files with 1135 additions and 993 deletions

View File

@@ -109,7 +109,7 @@ class CachedListCreateModelMixin(CacheDeleteMixin):
A fully custom mixin that handles mutiple instance cration.
"""
def list_create(self, request):
def list_create(self, request, **kwargs):
" Creates the list of entries in the request "
# Go on with the creation as normal
serializer = self.get_serializer(data=request.data, many=True)
@@ -142,7 +142,7 @@ class CachedListRetrieveModelMixin(CacheGetMixin, CacheSetMixin):
inherit anything from it.
"""
def list(self, request):
def list(self, request, **kwargs):
" Retrieves the listing of entries "
# Attempt to get the request from the cache
cache_attempt = self.get_cache(request)
@@ -206,7 +206,7 @@ class CachedListDestroyModelMixin(CacheDeleteMixin):
A fully custom mixin that handles mutiple instance deletions.
"""
def list_destroy(self, request):
def list_destroy(self, request, **kwargs):
" Deletes the list of entries in the request "
# Go on with the validation as normal
serializer = self.get_serializer(data=request.data, many=True)