Browse Source

Conserta DocumentoAcessorioEmLote

pull/1119/head
Edward Ribeiro 8 years ago
parent
commit
af96039725
  1. 2
      sapl/materia/views.py
  2. 2
      sapl/templates/materia/em_lote/acessorio.html

2
sapl/materia/views.py

@ -1616,7 +1616,7 @@ class DocumentoAcessorioEmLoteView(PermissionRequiredMixin, FilterView):
doc = DocumentoAcessorio()
doc.materia_id = materia_id
doc.tipo = tipo
doc.arquivo = request.POST['arquivo']
doc.arquivo = request.FILES['arquivo']
doc.nome = request.POST['nome']
doc.data = datetime.strptime(request.POST['data'], "%d/%m/%Y")
doc.autor_id = request.POST['autor']

2
sapl/templates/materia/em_lote/acessorio.html

@ -14,7 +14,7 @@
{% else %}
<h3 style="text-align: right;">{% blocktrans with object_list.count as total_materias %}Foram encontradas {{total_materias}} matérias.{% endblocktrans %}</h3>
{% endif %}
<form method="POST">
<form method="POST" enctype="multipart/form-data">
{% csrf_token %}
<fieldset>
<legend>Documento Acessório</legend>

Loading…
Cancel
Save