Browse Source

HOT-FIX: remove protocolo.data de cadastro de matéria

pull/2170/head
Edward Ribeiro 6 years ago
parent
commit
f0af0de989
  1. 2
      sapl/materia/views.py
  2. 1
      sapl/protocoloadm/views.py

2
sapl/materia/views.py

@ -191,7 +191,7 @@ class CriarProtocoloMateriaView(CreateView):
context['form'].fields['tipo'].initial = protocolo.tipo_materia context['form'].fields['tipo'].initial = protocolo.tipo_materia
context['form'].fields['numero'].initial = numero context['form'].fields['numero'].initial = numero
context['form'].fields['ano'].initial = protocolo.ano context['form'].fields['ano'].initial = protocolo.ano
context['form'].fields['data_apresentacao'].initial = protocolo.data context['form'].fields['data_apresentacao'].initial = protocolo.timestamp.date()
context['form'].fields['numero_protocolo'].initial = protocolo.numero context['form'].fields['numero_protocolo'].initial = protocolo.numero
context['form'].fields['ementa'].initial = protocolo.assunto_ementa context['form'].fields['ementa'].initial = protocolo.assunto_ementa

1
sapl/protocoloadm/views.py

@ -334,7 +334,6 @@ class ProtocoloDocumentoView(PermissionRequiredMixin,
return self.render_to_response(self.get_context_data()) return self.render_to_response(self.get_context_data())
protocolo.ano = timezone.now().year protocolo.ano = timezone.now().year
protocolo.assunto_ementa = self.request.POST['assunto'] protocolo.assunto_ementa = self.request.POST['assunto']
protocolo.save() protocolo.save()
self.object = protocolo self.object = protocolo
return redirect(self.get_success_url()) return redirect(self.get_success_url())

Loading…
Cancel
Save