From 36a169a23f8c032cde7d8279bd7832b5a474b14b Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 9 Jun 2015 16:35:58 -0300 Subject: [PATCH] Replace field prefix sgl_ => sigla_ --- comissoes/models.py | 6 +++--- lexml/models.py | 2 +- materia/models.py | 10 +++++----- norma/models.py | 2 +- parlamentares/models.py | 6 +++--- protocoloadm/models.py | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/comissoes/models.py b/comissoes/models.py index 2080607c1..c4aa4af12 100644 --- a/comissoes/models.py +++ b/comissoes/models.py @@ -5,15 +5,15 @@ from parlamentares.models import Parlamentar class TipoComissao(models.Model): nome_tipo_comissao = models.CharField(max_length=50) - sgl_natureza_comissao = models.CharField(max_length=1) - sgl_tipo_comissao = models.CharField(max_length=10) + sigla_natureza_comissao = models.CharField(max_length=1) + sigla_tipo_comissao = models.CharField(max_length=10) descricao_dispositivo_regimental = models.CharField(max_length=50, blank=True, null=True) class Comissao(models.Model): tipo_comissao = models.ForeignKey(TipoComissao) nome_comissao = models.CharField(max_length=60) - sgl_comissao = models.CharField(max_length=10) + sigla_comissao = models.CharField(max_length=10) data_criacao = models.DateField() data_extincao = models.DateField(blank=True, null=True) nome_apelido_temp = models.CharField(max_length=100, blank=True, null=True) diff --git a/lexml/models.py b/lexml/models.py index 9b3e65722..322a1d5d6 100644 --- a/lexml/models.py +++ b/lexml/models.py @@ -4,7 +4,7 @@ from django.db import models class LexmlRegistroProvedor(models.Model): id_provedor = models.IntegerField() nome_provedor = models.CharField(max_length=255) - sgl_provedor = models.CharField(max_length=15) + sigla_provedor = models.CharField(max_length=15) adm_email = models.CharField(max_length=50, blank=True, null=True) nome_responsavel = models.CharField(max_length=255, blank=True, null=True) tipo = models.CharField(max_length=50) diff --git a/materia/models.py b/materia/models.py index 70fdd01cb..dcab8e6c5 100644 --- a/materia/models.py +++ b/materia/models.py @@ -5,7 +5,7 @@ from parlamentares.models import Parlamentar, Partido class TipoMateriaLegislativa(models.Model): - sgl_tipo_materia = models.CharField(max_length=5) + sigla_tipo_materia = models.CharField(max_length=5) descricao_tipo_materia = models.CharField(max_length=50) ind_num_automatica = models.IntegerField() quorum_minimo_votacao = models.IntegerField() @@ -16,7 +16,7 @@ class RegimeTramitacao(models.Model): class Origem(models.Model): - sgl_origem = models.CharField(max_length=10) + sigla_origem = models.CharField(max_length=10) nome_origem = models.CharField(max_length=50) @@ -125,7 +125,7 @@ class Numeracao(models.Model): class Orgao(models.Model): nome_orgao = models.CharField(max_length=60) - sgl_orgao = models.CharField(max_length=10) + sigla_orgao = models.CharField(max_length=10) ind_unid_deliberativa = models.IntegerField() endereco_orgao = models.CharField(max_length=100, blank=True, null=True) num_tel_orgao = models.CharField(max_length=50, blank=True, null=True) @@ -173,7 +173,7 @@ class Proposicao(models.Model): class StatusTramitacao(models.Model): - sgl_status = models.CharField(max_length=10) + sigla_status = models.CharField(max_length=10) descricao_status = models.CharField(max_length=60) ind_fim_tramitacao = models.IntegerField() ind_retorno_tramitacao = models.IntegerField() @@ -194,6 +194,6 @@ class Tramitacao(models.Model): unid_tram_dest = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+') ind_ult_tramitacao = models.IntegerField() ind_urgencia = models.IntegerField() - sgl_turno = models.CharField(max_length=1, blank=True, null=True) + sigla_turno = models.CharField(max_length=1, blank=True, null=True) txt_tramitacao = models.TextField(blank=True, null=True) data_fim_prazo = models.DateField(blank=True, null=True) diff --git a/norma/models.py b/norma/models.py index 6f1516ac2..8b990a0bb 100644 --- a/norma/models.py +++ b/norma/models.py @@ -10,7 +10,7 @@ class AssuntoNorma(models.Model): class TipoNormaJuridica(models.Model): voc_lexml = models.CharField(max_length=50, blank=True, null=True) - sgl_tipo_norma = models.CharField(max_length=3) + sigla_tipo_norma = models.CharField(max_length=3) descricao_tipo_norma = models.CharField(max_length=50) diff --git a/parlamentares/models.py b/parlamentares/models.py index 818bc01be..12d50b118 100644 --- a/parlamentares/models.py +++ b/parlamentares/models.py @@ -24,7 +24,7 @@ class Coligacao(models.Model): class Partido(models.Model): - sgl_partido = models.CharField(max_length=9) + sigla_partido = models.CharField(max_length=9) nome_partido = models.CharField(max_length=50) data_criacao = models.DateField(blank=True, null=True) data_extincao = models.DateField(blank=True, null=True) @@ -39,8 +39,8 @@ class Localidade(models.Model): nome_localidade = models.CharField(max_length=50, blank=True, null=True) nome_localidade_pesq = models.CharField(max_length=50, blank=True, null=True) tipo_localidade = models.CharField(max_length=1, blank=True, null=True) - sgl_uf = models.CharField(max_length=2, blank=True, null=True) - sgl_regiao = models.CharField(max_length=2, blank=True, null=True) + sigla_uf = models.CharField(max_length=2, blank=True, null=True) + sigla_regiao = models.CharField(max_length=2, blank=True, null=True) class NivelInstrucao(models.Model): diff --git a/protocoloadm/models.py b/protocoloadm/models.py index 4232b6478..a1f30f4be 100644 --- a/protocoloadm/models.py +++ b/protocoloadm/models.py @@ -4,7 +4,7 @@ from materia.models import Autor, TipoMateriaLegislativa class TipoDocumentoAdministrativo(models.Model): - sgl_tipo_documento = models.CharField(max_length=5) + sigla_tipo_documento = models.CharField(max_length=5) descricao_tipo_documento = models.CharField(max_length=50) @@ -57,7 +57,7 @@ class Protocolo(models.Model): class StatusTramitacaoAdministrativo(models.Model): - sgl_status = models.CharField(max_length=10) + sigla_status = models.CharField(max_length=10) descricao_status = models.CharField(max_length=60) ind_fim_tramitacao = models.IntegerField() ind_retorno_tramitacao = models.IntegerField()