Integrate a simple api list and detail display

This commit is contained in:
Matthew Jones
2013-11-11 16:37:36 -05:00
parent e1e70b37a5
commit 50fee99580
5 changed files with 51 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ from awx.main.utils import *
# FIXME: machinery for auto-adding audit trail logs to all CREATE/EDITS
__all__ = ['APIView', 'GenericAPIView', 'ListAPIView', 'ListCreateAPIView',
__all__ = ['APIView', 'GenericAPIView', 'ListAPIView', 'SimpleListAPIView', 'ListCreateAPIView',
'SubListAPIView', 'SubListCreateAPIView', 'RetrieveAPIView',
'RetrieveUpdateAPIView', 'RetrieveUpdateDestroyAPIView']
@@ -172,6 +172,9 @@ class GenericAPIView(generics.GenericAPIView, APIView):
ret['search_fields'] = self.search_fields
return ret
class SimpleListAPIView(generics.ListAPIView, GenericAPIView):
pass
class ListAPIView(generics.ListAPIView, GenericAPIView):
# Base class for a read-only list view.