def move_to_placeholder(self, placeholder, sort_order=None):
        """
        .. versionadded: 1.0.2 Move this content item to a new placeholder.

        The object is saved afterwards.
        """
        # Transfer parent
        self.placeholder = placeholder
        self.parent_type = placeholder.parent_type
        self.parent_id = placeholder.parent_id

        try:
            # Copy cache property set by GenericForeignKey (_meta.virtual_fields[0].cache_attr)
            setattr(self, '_parent_cache', placeholder._parent_cache)
        except __HOLE__:
            pass

        if sort_order is not None:
            self.sort_order = sort_order
        self.save()
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/db.py/ContentItem.move_to_placeholder