def METHOD_NAME(self, instance):
    if instance is not None:
        # Add object info to RowResult (e.g. for LogEntry)
        self.object_id = getattr(instance, "pk", None)
        self.object_repr = force_str(instance)