class ProductFileDetailsSerializerV5(ProductFileSerializerV5): """Converts product file model fields to REST output""" from source.serializers import SourceFileSerializer sources = SourceFileSerializer(many=True) ancestors = ProductFileSerializer(many=True, source='ancestor_products') descendants = ProductFileSerializer(many=True, source='descendant_products')
class IngestDetailsSerializer(IngestBaseSerializer): """Converts ingest model fields to REST output""" from source.serializers import SourceFileSerializer file_path = serializers.CharField() new_file_path = serializers.CharField() strike = StrikeDetailsSerializer() source_file = SourceFileSerializer()
class IngestDetailsSerializer(IngestBaseSerializer): '''Converts ingest model fields to REST output''' from source.serializers import SourceFileSerializer transfer_path = serializers.CharField() file_path = serializers.CharField() ingest_path = serializers.CharField() strike = StrikeDetailsSerializer() source_file = SourceFileSerializer()
class IngestDetailsSerializerV6(IngestSerializerV6): """Converts ingest model fields to REST output""" scan = ScanDetailsSerializerV6() strike = StrikeDetailsSerializerV6() workspace = WorkspaceDetailsSerializerV6() new_workspace = WorkspaceDetailsSerializerV6() job = ModelIdSerializer() source_file = SourceFileSerializer()