Use the pk instead of the object itself in orphan logs