Re: in spite of their different view/s on politics. I don't feel there is a "right" answer - but you have two people, so two views is likely.
An alternative way of saying this is John gets along with Peter in spite of their differing view of politics. |