Refactored the library a bit and added a .gitignore file.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user