From 8572fa44694b6a449d055d10526a193553d0cd08 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Fri, 24 Mar 2017 11:12:58 -0300 Subject: [PATCH] =?UTF-8?q?Migra=20ata=20de=20sess=C3=A3o=20plen=C3=A1ria?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/migracao_documentos.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sapl/legacy/migracao_documentos.py b/sapl/legacy/migracao_documentos.py index 148f2a03d..b1360c6cc 100644 --- a/sapl/legacy/migracao_documentos.py +++ b/sapl/legacy/migracao_documentos.py @@ -8,6 +8,7 @@ from sapl.base.models import CasaLegislativa from sapl.materia.models import DocumentoAcessorio, MateriaLegislativa from sapl.norma.models import NormaJuridica from sapl.parlamentares.models import Parlamentar +from sapl.sessao.models import SessaoPlenaria from sapl.settings import MEDIA_ROOT # MIGRAÇÃO DE DOCUMENTOS ################################################### @@ -49,6 +50,10 @@ DOCS = { 'texto_original', 'norma_juridica/{}_texto_integral', 'normajuridica/{0}/{0}_texto_integral{1}'), + SessaoPlenaria: ( + 'upload_ata', + 'ata_sessao/{}_ata_sessao', + 'sessaoplenaria/{0}/ata/{0}_ata_sessao{1}'), } DOCS = {tipo: (campo, @@ -135,3 +140,4 @@ def migrar_documentos(): migrar_docs_por_ids(MateriaLegislativa) migrar_docs_por_ids(DocumentoAcessorio) migrar_docs_por_ids(NormaJuridica) + migrar_docs_por_ids(SessaoPlenaria)