class IngestSerializerV6(IngestBaseSerializer): """Converts ingest model fields to REST output""" scan = ScanBaseSerializer() strike = StrikeBaseSerializer() workspace = WorkspaceSerializerV6() new_workspace = WorkspaceSerializerV6() job = ModelIdSerializer() source_file = SourceFileBaseSerializer()
class ProductFileUpdateSerializer(ProductFileSerializer): """Converts product file updates to REST output""" from source.serializers import SourceFileBaseSerializer update = ProductFileUpdateField(source='*') source_files = SourceFileBaseSerializer(many=True)
class IngestSerializer(IngestBaseSerializer): '''Converts ingest model fields to REST output''' from source.serializers import SourceFileBaseSerializer strike = StrikeBaseSerializer() source_file = SourceFileBaseSerializer()