From e588862a0255cd231c851e5446fe679277d5b0d3 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 28 Mar 2017 14:57:09 -0300 Subject: [PATCH] =?UTF-8?q?Migra=20texto=20original=20de=20Proposi=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/legacy/migracao_documentos.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sapl/legacy/migracao_documentos.py b/sapl/legacy/migracao_documentos.py index b2c008fa1..e259a55cd 100644 --- a/sapl/legacy/migracao_documentos.py +++ b/sapl/legacy/migracao_documentos.py @@ -5,7 +5,8 @@ import re import magic from sapl.base.models import CasaLegislativa -from sapl.materia.models import DocumentoAcessorio, MateriaLegislativa +from sapl.materia.models import (DocumentoAcessorio, MateriaLegislativa, + Proposicao) from sapl.norma.models import NormaJuridica from sapl.parlamentares.models import Parlamentar from sapl.sessao.models import SessaoPlenaria @@ -54,6 +55,10 @@ DOCS = { 'upload_ata', 'ata_sessao/{}_ata_sessao', 'sessaoplenaria/{0}/ata/{0}_ata_sessao{1}'), + Proposicao: ( + 'texto_original', + 'proposicao/{}', + 'proposicao/{0}/{0}{1}'), } DOCS = {tipo: (campo, @@ -147,3 +152,4 @@ def migrar_documentos(): migrar_docs_por_ids(DocumentoAcessorio) migrar_docs_por_ids(NormaJuridica) migrar_docs_por_ids(SessaoPlenaria) + migrar_docs_por_ids(Proposicao)