I switched to this format and it worked :) Thanks for the help
messages.add_message(request, messages.SUCCESS, 'Fornecedor adicionado com sucesso')