Skip to content

Commit

Permalink
Use automatic serializer for component types
Browse files Browse the repository at this point in the history
This patch was merged at about the same time as the automatic serializer
support and it was not used yet.

JIRA: PDC-977
  • Loading branch information
lubomir committed Aug 27, 2015
1 parent 64b78f5 commit ab52aec
Showing 1 changed file with 4 additions and 26 deletions.
30 changes: 4 additions & 26 deletions pdc/apps/component/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ab52aec

Please sign in to comment.