From 4211cff3a647cb9d717d00f6c36d34fa6673d14d Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Fri, 30 Aug 2019 14:32:34 -0300 Subject: [PATCH] HOT-FIX: mantem query_string em redirect app comp --- sapl/compilacao/views.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sapl/compilacao/views.py b/sapl/compilacao/views.py index 671e5bcf1..d27d85f1a 100644 --- a/sapl/compilacao/views.py +++ b/sapl/compilacao/views.py @@ -195,8 +195,13 @@ class IntegracaoTaView(TemplateView): return redirect(to=reverse_lazy('sapl.compilacao:ta_text_edit', kwargs={'ta_id': ta.pk})) else: - return redirect(to=reverse_lazy('sapl.compilacao:ta_text', - kwargs={'ta_id': ta.pk})) + return redirect( + to='%s?%s' % ( + reverse_lazy('sapl.compilacao:ta_text', + kwargs={'ta_id': ta.pk}), + request.META['QUERY_STRING'] + ) + ) class Meta: abstract = True