Browse Source

Replace field prefix sgl_ => sigla_

pull/6/head
Marcio Mazza 10 years ago
parent
commit
36a169a23f
  1. 6
      comissoes/models.py
  2. 2
      lexml/models.py
  3. 10
      materia/models.py
  4. 2
      norma/models.py
  5. 6
      parlamentares/models.py
  6. 4
      protocoloadm/models.py

6
comissoes/models.py

@ -5,15 +5,15 @@ from parlamentares.models import Parlamentar
class TipoComissao(models.Model): class TipoComissao(models.Model):
nome_tipo_comissao = models.CharField(max_length=50) nome_tipo_comissao = models.CharField(max_length=50)
sgl_natureza_comissao = models.CharField(max_length=1) sigla_natureza_comissao = models.CharField(max_length=1)
sgl_tipo_comissao = models.CharField(max_length=10) sigla_tipo_comissao = models.CharField(max_length=10)
descricao_dispositivo_regimental = models.CharField(max_length=50, blank=True, null=True) descricao_dispositivo_regimental = models.CharField(max_length=50, blank=True, null=True)
class Comissao(models.Model): class Comissao(models.Model):
tipo_comissao = models.ForeignKey(TipoComissao) tipo_comissao = models.ForeignKey(TipoComissao)
nome_comissao = models.CharField(max_length=60) 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_criacao = models.DateField()
data_extincao = models.DateField(blank=True, null=True) data_extincao = models.DateField(blank=True, null=True)
nome_apelido_temp = models.CharField(max_length=100, blank=True, null=True) nome_apelido_temp = models.CharField(max_length=100, blank=True, null=True)

2
lexml/models.py

@ -4,7 +4,7 @@ from django.db import models
class LexmlRegistroProvedor(models.Model): class LexmlRegistroProvedor(models.Model):
id_provedor = models.IntegerField() id_provedor = models.IntegerField()
nome_provedor = models.CharField(max_length=255) 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) adm_email = models.CharField(max_length=50, blank=True, null=True)
nome_responsavel = models.CharField(max_length=255, blank=True, null=True) nome_responsavel = models.CharField(max_length=255, blank=True, null=True)
tipo = models.CharField(max_length=50) tipo = models.CharField(max_length=50)

10
materia/models.py

@ -5,7 +5,7 @@ from parlamentares.models import Parlamentar, Partido
class TipoMateriaLegislativa(models.Model): 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) descricao_tipo_materia = models.CharField(max_length=50)
ind_num_automatica = models.IntegerField() ind_num_automatica = models.IntegerField()
quorum_minimo_votacao = models.IntegerField() quorum_minimo_votacao = models.IntegerField()
@ -16,7 +16,7 @@ class RegimeTramitacao(models.Model):
class Origem(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) nome_origem = models.CharField(max_length=50)
@ -125,7 +125,7 @@ class Numeracao(models.Model):
class Orgao(models.Model): class Orgao(models.Model):
nome_orgao = models.CharField(max_length=60) 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() ind_unid_deliberativa = models.IntegerField()
endereco_orgao = models.CharField(max_length=100, blank=True, null=True) endereco_orgao = models.CharField(max_length=100, blank=True, null=True)
num_tel_orgao = models.CharField(max_length=50, 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): 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) descricao_status = models.CharField(max_length=60)
ind_fim_tramitacao = models.IntegerField() ind_fim_tramitacao = models.IntegerField()
ind_retorno_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='+') unid_tram_dest = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+')
ind_ult_tramitacao = models.IntegerField() ind_ult_tramitacao = models.IntegerField()
ind_urgencia = 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) txt_tramitacao = models.TextField(blank=True, null=True)
data_fim_prazo = models.DateField(blank=True, null=True) data_fim_prazo = models.DateField(blank=True, null=True)

2
norma/models.py

@ -10,7 +10,7 @@ class AssuntoNorma(models.Model):
class TipoNormaJuridica(models.Model): class TipoNormaJuridica(models.Model):
voc_lexml = models.CharField(max_length=50, blank=True, null=True) 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) descricao_tipo_norma = models.CharField(max_length=50)

6
parlamentares/models.py

@ -24,7 +24,7 @@ class Coligacao(models.Model):
class Partido(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) nome_partido = models.CharField(max_length=50)
data_criacao = models.DateField(blank=True, null=True) data_criacao = models.DateField(blank=True, null=True)
data_extincao = 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 = models.CharField(max_length=50, blank=True, null=True)
nome_localidade_pesq = 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) tipo_localidade = models.CharField(max_length=1, blank=True, null=True)
sgl_uf = models.CharField(max_length=2, blank=True, null=True) sigla_uf = models.CharField(max_length=2, blank=True, null=True)
sgl_regiao = models.CharField(max_length=2, blank=True, null=True) sigla_regiao = models.CharField(max_length=2, blank=True, null=True)
class NivelInstrucao(models.Model): class NivelInstrucao(models.Model):

4
protocoloadm/models.py

@ -4,7 +4,7 @@ from materia.models import Autor, TipoMateriaLegislativa
class TipoDocumentoAdministrativo(models.Model): 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) descricao_tipo_documento = models.CharField(max_length=50)
@ -57,7 +57,7 @@ class Protocolo(models.Model):
class StatusTramitacaoAdministrativo(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) descricao_status = models.CharField(max_length=60)
ind_fim_tramitacao = models.IntegerField() ind_fim_tramitacao = models.IntegerField()
ind_retorno_tramitacao = models.IntegerField() ind_retorno_tramitacao = models.IntegerField()

Loading…
Cancel
Save