Actions
Story #7191
closedAs a plugin writer, I want to have an immutable RepositoryViewSet
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
Create a new ViewSet class similar to RepositoryViewSet
that will be immutable.
class ImmutableRepositoryViewSet(
NamedModelViewSet,
mixins.CreateModelMixin,
mixins.RetrieveModelMixin,
mixins.ListModelMixin,
AsyncRemoveMixin,
):
"""
A repository ViewSet that does not allow the usage of the methods PATCH and PUT.
"""
queryset = Repository.objects.all().order_by("name")
serializer_class = RepositorySerializer
endpoint_name = "repositories"
router_lookup = "repository"
filterset_class = RepositoryFilter
Added by Lubos Mjachky over 4 years ago
Updated by Anonymous over 4 years ago
- Status changed from NEW to MODIFIED
- % Done changed from 0 to 100
Applied in changeset pulpcore|9ba8dfebcf45fbf4caded1484a2691dd5dd5d404.
Updated by pulpbot over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Enable plugin writers to inherit from ImmutableRepositoryViewSet
Required by https://github.com/pulp/pulp_container/pull/127.
closes #7191