Skip to content

preservation_view#

PreservationViewSet#

Bases: DatasetNestedOneToOneView

Source code in src/apps/core/views/preservation_view.py
@method_decorator(
    name="retrieve", decorator=swagger_auto_schema(operation_description="View Preservation")
)
class PreservationViewSet(DatasetNestedOneToOneView):
    serializer_class = PreservationModelSerializer
    dataset_field_name = "preservation"
    use_defaults_when_object_does_not_exist = True