Browse Source

Fix #563

pull/674/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
99d8a94f59
  1. 6
      sapl/protocoloadm/views.py

6
sapl/protocoloadm/views.py

@ -17,9 +17,8 @@ from django_filters.views import FilterView
import sapl.crud.base import sapl.crud.base
from sapl.base.models import AppConfig from sapl.base.models import AppConfig
from sapl.crud.base import (Crud, CrudBaseMixin, CrudCreateView, from sapl.crud.base import (Crud, CrudBaseMixin, CrudCreateView,
CrudDetailView, CrudDeleteView, CrudDeleteView, CrudDetailView, CrudListView,
CrudListView, CrudUpdateView, CrudUpdateView, make_pagination)
make_pagination)
from sapl.crud.masterdetail import MasterDetailCrud from sapl.crud.masterdetail import MasterDetailCrud
from sapl.materia.models import TipoMateriaLegislativa from sapl.materia.models import TipoMateriaLegislativa
from sapl.utils import (create_barcode, get_client_ip, permissoes_adm, from sapl.utils import (create_barcode, get_client_ip, permissoes_adm,
@ -259,6 +258,7 @@ class ProtocoloDocumentoView(PermissionRequiredMixin,
f.data = datetime.now().strftime('%Y-%m-%d') f.data = datetime.now().strftime('%Y-%m-%d')
f.hora = datetime.now().strftime('%H:%M') f.hora = datetime.now().strftime('%H:%M')
f.timestamp = datetime.now().strftime("%Y-%m-%d %H:%M") f.timestamp = datetime.now().strftime("%Y-%m-%d %H:%M")
f.assunto_ementa = self.request.POST['assunto']
f.save() f.save()
return redirect(self.get_success_url()) return redirect(self.get_success_url())

Loading…
Cancel
Save