From ab52aecd50b8000405541361fd6cf05f2929f90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 27 Aug 2015 09:41:36 +0200 Subject: [PATCH] Use automatic serializer for component types This patch was merged at about the same time as the automatic serializer support and it was not used yet. JIRA: PDC-977 --- pdc/apps/component/views.py | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/pdc/apps/component/views.py b/pdc/apps/component/views.py index 90528d7f..ff8ad984 100644 --- a/pdc/apps/component/views.py +++ b/pdc/apps/component/views.py @@ -621,20 +621,9 @@ def list(self, request, *args, **kwargs): __URL__: $LINK:releasecomponenttype-list$ - __Response__: + __Response__: a paged list of following objects - # paged list - { - "count": int, - "next": url, - "previous": url, - "results": [ - { - "name": string, - }, - ... - ] - } + %(SERIALIZER)s """ return super(ReleaseComponentTypeViewSet, self).list(request, *args, **kwargs) @@ -1759,20 +1748,9 @@ def list(self, request, *args, **kwargs): __URL__: $LINK:componentrelationshiptype-list$ - __Response__: + __Response__: a paged list of following objects - # paged list - { - "count": int, - "next": url, - "previous": url, - "results": [ - { - "name": string, - }, - ... - ] - } + %(SERIALIZER)s """ return super(ReleaseComponentRelationshipTypeViewSet, self).list(request, *args, **kwargs)