def METHOD_NAME(self, basket, include_buttons=True):
    new_total_messages = []
    # We use the 'include_buttons' parameter to determine whether to show the
    # 'Checkout now' buttons.  We don't want to show these on the basket page.
    msg = render_to_string(
        self.new_total_template_name,
        {"basket": basket, "include_buttons": include_buttons},
    )
    new_total_messages.append((messages.INFO, msg))
    return new_total_messages