From 66538763bfb00407b475d397144a0686ab6f35fb Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 30 Oct 2014 09:58:54 -0400 Subject: [PATCH] Fix super calling method of document type list and delete views --- mayan/apps/documents/api_views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):