def _html_list(self, changes):
        items = []
        if isinstance(changes, dict):
            for key, value in changes.items():
                if isinstance(value, dict):
                    value = self._html_list(value)
                elif isinstance(value, list):
                    value = format_html(", ".join(value))
                else:
                    value = format_html(str(value))
                items.append("<li>{}: {}</li>".format(key, value))
        elif isinstance(changes, list):
            items = ["<li>{}</li>".format(format_html(change)) for change in changes]
        return mark_safe(f"<ul class='list-unstyled'>{''.join(items)}</ul>")