Store the result of `self.get_view_on_site_url(obj)` as a local variable to avoid two function calls.