Browse Source

HOT-FIX: mantem query_string em redirect app comp

pull/2963/head
Leandro Roberto 5 years ago
parent
commit
4211cff3a6
  1. 9
      sapl/compilacao/views.py

9
sapl/compilacao/views.py

@ -195,8 +195,13 @@ class IntegracaoTaView(TemplateView):
return redirect(to=reverse_lazy('sapl.compilacao:ta_text_edit', return redirect(to=reverse_lazy('sapl.compilacao:ta_text_edit',
kwargs={'ta_id': ta.pk})) kwargs={'ta_id': ta.pk}))
else: else:
return redirect(to=reverse_lazy('sapl.compilacao:ta_text', return redirect(
kwargs={'ta_id': ta.pk})) to='%s?%s' % (
reverse_lazy('sapl.compilacao:ta_text',
kwargs={'ta_id': ta.pk}),
request.META['QUERY_STRING']
)
)
class Meta: class Meta:
abstract = True abstract = True

Loading…
Cancel
Save