コード例 #1
0
class IngestSerializerV6(IngestBaseSerializer):
    """Converts ingest model fields to REST output"""

    scan = ScanBaseSerializer()
    strike = StrikeBaseSerializer()

    workspace = WorkspaceSerializerV6()
    new_workspace = WorkspaceSerializerV6()

    job = ModelIdSerializer()
    source_file = SourceFileBaseSerializer()
コード例 #2
0
class ProductFileUpdateSerializer(ProductFileSerializer):
    """Converts product file updates to REST output"""
    from source.serializers import SourceFileBaseSerializer

    update = ProductFileUpdateField(source='*')
    source_files = SourceFileBaseSerializer(many=True)
コード例 #3
0
class IngestSerializer(IngestBaseSerializer):
    '''Converts ingest model fields to REST output'''
    from source.serializers import SourceFileBaseSerializer

    strike = StrikeBaseSerializer()
    source_file = SourceFileBaseSerializer()