def move_to_placeholder(self, placeholder, sort_order=None):
        # 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 AttributeError:
            pass

        if sort_order is not None:
            self.sort_order = sort_order
        self.save()
Generate a random AEAD block using the YubiHSM internal DRBG_CTR random generator.
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/db.py/ContentItem.move_to_placeholder--crossover with--dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/base.py/YHSM.generate_aead_random