def METHOD_NAME(self, instance):
    if not isinstance(instance, Role):
        return
    clone_from = self.request.query_params.get('clone_from')
    if not clone_from:
        return
    clone = Role.objects.filter(id=clone_from).first()
    if not clone:
        return
    instance.permissions.set(clone.get_permissions())