From 819632bf5d5f641c80a4f091f40b44e3a1731d7c Mon Sep 17 00:00:00 2001 From: joao Date: Fri, 10 Jun 2022 09:20:47 -0300 Subject: [PATCH] HOT-FIX: conserta pauta sessoes --- sapl/sessao/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index a28041fb4..94e5419a0 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -3812,7 +3812,7 @@ class PautaSessaoDetailView(DetailView): data_sessao = sessao_plenaria.data_inicio.strftime("%Y-%m-%d ") data_hora_sessao = datetime.strptime(data_sessao + sessao_plenaria.hora_inicio, "%Y-%m-%d %H:%M") data_hora_sessao_utc = pytz.timezone(TIME_ZONE).localize(data_hora_sessao).astimezone(pytz.utc) - ultima_tramitacao = m.materia.tramitacao_set.filter(timestamp__lt=data_hora_sessao_utc).order_by( + ultima_tramitacao = o.materia.tramitacao_set.filter(timestamp__lt=data_hora_sessao_utc).order_by( '-data_tramitacao', '-id').first() numeracao = o.materia.numeracao_set.first()