def METHOD_NAME(self):
    if self.need_update():
        if self.get_newest_version():
            current = self.get_clean_version()
            newest = self.get_clean_version(self.get_newest_version())
            url = f"https://github.com/{settings.GIT_ORG}/{settings.GIT_REPO}/compare/{current}...{newest}"
        else:
            url = f"https://github.com/{settings.GIT_ORG}/{settings.GIT_REPO}/commits/"
        newest_tag = "newer_version_available"
        update_url = self.get_update_url()
        newest_text = _(
            'There is a <a href="{url}" onclick="window.open(this.href); return false;">newer version available</a> &mdash; <a href="{update_url}">Update Now</a>'
        ).format(url=url, update_url=update_url)
    else:
        return
    helpers.add_site_message(newest_text, tag=newest_tag, level="success")