From cdf2fd4cb1be247ccfe34ed22591cd2498863a0e Mon Sep 17 00:00:00 2001 From: Edward <9326037+edwardoliveira@users.noreply.github.com> Date: Tue, 13 Oct 2020 11:08:01 -0300 Subject: [PATCH] Update sapl/parlamentares/views.py --- sapl/parlamentares/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index a101790a0..894b73be7 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -1078,7 +1078,7 @@ def altera_field_mesa_public_view(request): legislatura = request.GET.get('legislatura', Legislatura.objects.order_by('-data_inicio').first()) sessoes = legislatura.sessaoplenaria_set.filter(tipo='O').order_by('-data_inicio') if not sessoes: - return JsonResponse({'msg': ('Nenhuma legislatura encontrada!', 0)}) + return JsonResponse({'msg': ('Nenhuma sessão encontrada!', 0)}) # Verifica se já tem uma sessão selecionada. Ocorre quando é alterado o campo de sessão if 'sessao' in request.GET: