Browse Source

HOT-FIX: conserta erro em pdf de norma

pull/1681/head
Edward Ribeiro 7 years ago
parent
commit
e69120d759
  1. 1
      sapl/materia/views.py
  2. 3
      sapl/norma/views.py

1
sapl/materia/views.py

@ -1791,6 +1791,7 @@ def gerar_pdf_impressos(request, context, template_name):
response = HttpResponse(pdf, content_type='application/pdf')
response['Content-Disposition'] = (
'inline; filename="relatorio_impressos.pdf"')
response['Content-Transfer-Encoding'] = 'binary'
return response

3
sapl/norma/views.py

@ -239,6 +239,9 @@ def gerar_pdf_impressos(request, context, template_name):
response = HttpResponse(pdf, content_type='application/pdf')
response['Content-Disposition'] = (
'inline; filename="relatorio_impressos.pdf"')
response['Content-Transfer-Encoding'] = 'binary'
return response
class NormaPesquisaSimplesView(PermissionRequiredMixin, FormView):
form_class = NormaPesquisaSimplesForm

Loading…
Cancel
Save