show preview button only when get_absolute_url has been defined