AC-1040 Unified job template and unified job views.

This commit is contained in:
Chris Church
2014-03-28 01:25:19 -04:00
parent c1d314ed6f
commit 52ab418abb
7 changed files with 191 additions and 214 deletions

View File

@@ -197,7 +197,7 @@ class GenericAPIView(generics.GenericAPIView, APIView):
# appropriate metadata about the fields that should be supplied.
serializer = self.get_serializer()
actions['GET'] = serializer.metadata()
ret['types'] = [serializer.get_type(None)] # FIXME: Support multiple types?
ret['types'] = serializer.get_types()
if actions:
ret['actions'] = actions
if getattr(self, 'search_fields', None):