def METHOD_NAME(self, obj, locale):
    return format_html(
        '<div class="discovery-preview" data-locale="{}">'
        '<h2 class="heading">{}</h2>'
        '<div class="editorial-description">{}</div></div>',
        locale,
        obj.addon.name,
        mark_safe(
            gettext(obj.custom_description) or obj.addon_summary_fallback or ''
        ),
    )