def METHOD_NAME(self, serializer):
    model = self.queryset.model
    logger = logging.getLogger(f'netbox.api.views.{self.__class__.__name__}')
    logger.info(f"Updating {model._meta.verbose_name} {serializer.instance} (PK: {serializer.instance.pk})")
    # Enforce object-level permissions on save()
    try:
        with transaction.atomic():
            instance = serializer.save()
            self._validate_objects(instance)
    except ObjectDoesNotExist:
        raise PermissionDenied()