Fixed a problem with the "Delete folder" API, having had the wrong prototype
This commit is contained in:
@@ -123,7 +123,8 @@ class APIDocumentFolderListView(generics.ListAPIView):
|
|||||||
|
|
||||||
|
|
||||||
class APIFolderDocumentView(views.APIView):
|
class APIFolderDocumentView(views.APIView):
|
||||||
def delete(self, request):
|
|
||||||
|
def delete(self, request, *args, **kwargs):
|
||||||
"""Remove a document from the selected folder."""
|
"""Remove a document from the selected folder."""
|
||||||
|
|
||||||
folder = get_object_or_404(Folder, pk=self.kwargs['pk'])
|
folder = get_object_or_404(Folder, pk=self.kwargs['pk'])
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ class Installation(SingletonModel):
|
|||||||
self.os_properties()
|
self.os_properties()
|
||||||
self.binary_dependencies()
|
self.binary_dependencies()
|
||||||
self.mayan_properties()
|
self.mayan_properties()
|
||||||
self.git_properties()
|
# self.git_properties()
|
||||||
self.virtualenv_properties()
|
self.virtualenv_properties()
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
|
|||||||
Reference in New Issue
Block a user