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