def get_transform(self, name):
        transform = super(ArrayField, self).get_transform(name)

        if transform:
            return transform
        try:
            index = int(name)
        except __HOLE__:
            pass
        else:
            index += 1  # postgres uses 1-indexing
            return IndexTransformFactory(index, self)
        try:
            start, end = name.split("_")
            start = int(start) + 1
            end = int(end)  # don't add one here because postgres slices are weird
        except ValueError:
            pass
        else:
            return SliceTransformFactory(start, end)
dataset/ETHPy150Open niwinz/djorm-pgarray/djorm_pgarray/fields.py/ArrayField.get_transform