diff --git a/mayan/apps/documents/api_views.py b/mayan/apps/documents/api_views.py index 79ae57181a..5482fda442 100644 --- a/mayan/apps/documents/api_views.py +++ b/mayan/apps/documents/api_views.py @@ -265,11 +265,11 @@ class APIDocumentTypeListView(generics.ListCreateAPIView): def get(self, *args, **kwargs): """Returns a list of all the document types.""" - return super(APIDocumentTypeListView, self).delete(*args, **kwargs) + return super(APIDocumentTypeListView, self).get(*args, **kwargs) def post(self, *args, **kwargs): """Create a new document type.""" - return super(APIDocumentTypeListView, self).get(*args, **kwargs) + return super(APIDocumentTypeListView, self).post(*args, **kwargs) class APIDocumentTypeView(generics.RetrieveUpdateDestroyAPIView):