From e6308d159b9916f60e17f4c333c8c57fed8e2edc Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 6 Jul 2015 11:35:30 -0300 Subject: [PATCH] Adjust protocoloadm model fields (migration) --- protocoloadm/migrations/0001_initial.py | 51 ++++++++++++------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/protocoloadm/migrations/0001_initial.py b/protocoloadm/migrations/0001_initial.py index e822329c2..c83101d49 100644 --- a/protocoloadm/migrations/0001_initial.py +++ b/protocoloadm/migrations/0001_initial.py @@ -15,10 +15,10 @@ class Migration(migrations.Migration): name='DocumentoAcessorioAdministrativo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('nome_documento', models.CharField(max_length=30, verbose_name='Nome')), - ('nome_arquivo', models.CharField(max_length=100, verbose_name='Arquivo')), - ('data_documento', models.DateField(null=True, verbose_name='Data', blank=True)), - ('nome_autor_documento', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)), + ('nome', models.CharField(max_length=30, verbose_name='Nome')), + ('arquivo', models.CharField(max_length=100, verbose_name='Arquivo')), + ('data', models.DateField(null=True, verbose_name='Data', blank=True)), + ('autor', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)), ('assunto', models.TextField(null=True, verbose_name='Assunto', blank=True)), ('indexacao', models.TextField(null=True, blank=True)), ], @@ -31,12 +31,12 @@ class Migration(migrations.Migration): name='DocumentoAdministrativo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('numero_documento', models.IntegerField(verbose_name='N\xfamero')), - ('ano_documento', models.SmallIntegerField(verbose_name='Ano')), - ('data_documento', models.DateField(verbose_name='Data')), + ('numero', models.IntegerField(verbose_name='N\xfamero')), + ('ano', models.SmallIntegerField(verbose_name='Ano')), + ('data', models.DateField(verbose_name='Data')), ('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)), ('interessado', models.CharField(max_length=50, null=True, verbose_name='Interessado', blank=True)), - ('numero_dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)), + ('dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)), ('tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')), ('assunto', models.TextField(verbose_name='Assunto')), @@ -52,21 +52,21 @@ class Migration(migrations.Migration): name='Protocolo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)), - ('ano_protocolo', models.SmallIntegerField()), - ('data_protocolo', models.DateField()), - ('hora_protocolo', models.TimeField()), - ('data_timestamp', models.DateTimeField()), + ('numero', models.IntegerField(null=True, verbose_name='N\xfamero do Protocolo', blank=True)), + ('ano', models.SmallIntegerField()), + ('data', models.DateField()), + ('hora', models.TimeField()), + ('timestamp', models.DateTimeField()), ('tipo_protocolo', models.IntegerField(verbose_name='Tipo de Protocolo')), ('tipo_processo', models.IntegerField()), ('interessado', models.CharField(max_length=60, null=True, verbose_name='Interessado', blank=True)), ('assunto_ementa', models.TextField(null=True, blank=True)), - ('numero_paginas', models.IntegerField(null=True, verbose_name='N\xfam. P\xe1ginas', blank=True)), + ('numero_paginas', models.IntegerField(null=True, verbose_name='N\xfamero de P\xe1ginas', blank=True)), ('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('anulado', models.BooleanField()), ('user_anulacao', models.CharField(max_length=20, null=True, blank=True)), ('ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), - ('just_anulacao', models.CharField(max_length=60, null=True, blank=True)), + ('justificativa_anulacao', models.CharField(max_length=60, null=True, blank=True)), ('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), ('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), ], @@ -79,10 +79,9 @@ class Migration(migrations.Migration): name='StatusTramitacaoAdministrativo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('sigla_status', models.CharField(max_length=10, verbose_name='Sigla')), - ('descricao_status', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')), - ('fim_tramitacao', models.BooleanField()), - ('retorno_tramitacao', models.BooleanField()), + ('sigla', models.CharField(max_length=10, verbose_name='Sigla')), + ('descricao', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')), + ('indicador', models.CharField(max_length=1, verbose_name='Indicador da Tramita\xe7\xe3o', choices=[(b'F', 'Fim'), (b'R', 'Retorno')])), ], options={ 'verbose_name': 'Status de Tramita\xe7\xe3o', @@ -93,8 +92,8 @@ class Migration(migrations.Migration): name='TipoDocumentoAdministrativo', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), - ('sigla_tipo_documento', models.CharField(max_length=5, verbose_name='Sigla')), - ('descricao_tipo_documento', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), + ('sigla', models.CharField(max_length=5, verbose_name='Sigla')), + ('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ], options={ 'verbose_name': 'Tipo de Documento Administrativo', @@ -106,14 +105,14 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)), - ('cod_unid_tram_local', models.IntegerField(null=True, verbose_name='Unidade Local', blank=True)), - ('data_encaminha', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)), - ('cod_unid_tram_dest', models.IntegerField(null=True, verbose_name='Unidade Destino', blank=True)), - ('ult_tramitacao', models.BooleanField()), - ('tramitacao', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)), + ('data_encaminhamento', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)), + ('ultima', models.BooleanField()), + ('texto', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim do Prazo', blank=True)), ('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')), ('status', models.ForeignKey(verbose_name='Status', blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)), + ('unidade_tramitacao_destino', models.ForeignKey(related_name='+', verbose_name='Unidade Destino', blank=True, to='materia.UnidadeTramitacao', null=True)), + ('unidade_tramitacao_local', models.ForeignKey(related_name='+', verbose_name='Unidade Local', blank=True, to='materia.UnidadeTramitacao', null=True)), ], options={ 'verbose_name': 'Tramita\xe7\xe3o de Documento Administrativo',