'Raise an exception if a page of this title/slug already exists.'

def _raise_if_collides(self, attr, exception):

    if ((self.id is None) or hasattr(self, ('old_' + attr))):
        if self._collides(attr, getattr(self, attr)):
            raise exception
