Project

Profile

Help

Issue #5711 ยป 247.diff

romanblanco, 11/14/2019 12:36 PM

View differences:

pulp_ansible/app/galaxy/v3/views.py
return Response(serializer.data)
@action(methods=["PUT", "DELETE"], detail=True, url_path="certified")
@action(methods=["PUT"], detail=True, url_path="certified")
def set_certified(self, request, *args, **kwargs):
"""
Set collection version certified status.
pulp_ansible/app/urls.py
path(
"collections/<str:namespace>/<str:name>/versions/<str:version>/certified/",
views_v3.CollectionVersionViewSet.as_view(
{"put": "set_certified", "delete": "set_certified"}
{"put": "set_certified"}
),
name="collection-versions-set-certified",
),
    (1-1/1)