Browse Source

Reset migrations

pull/6/head
Marcio Mazza 10 years ago
parent
commit
51ac4fd32b
  1. 40
      base/migrations/0001_initial.py
  2. 105
      comissoes/migrations/0001_initial.py
  3. 32
      lexml/migrations/0001_initial.py
  4. 248
      materia/migrations/0001_initial.py
  5. 19
      materia/migrations/0002_auto_20150619_1807.py
  6. 80
      norma/migrations/0001_initial.py
  7. 186
      parlamentares/migrations/0001_initial.py
  8. 94
      protocoloadm/migrations/0001_initial.py
  9. 122
      sessao/migrations/0001_initial.py

40
base/migrations/0001_initial.py

@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='CasaLegislativa',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('cod_casa', models.CharField(max_length=100, verbose_name='C\xf3digo')),
('nom_casa', models.CharField(max_length=100, verbose_name='Nome')),
('sgl_casa', models.CharField(max_length=100, verbose_name='Sigla')),
('end_casa', models.CharField(max_length=100, verbose_name='Endere\xe7o')),
('num_cep', models.CharField(max_length=100, verbose_name='CEP')),
('municipio', models.CharField(max_length=100, verbose_name='Munic\xedpio')),
('sgl_uf', models.CharField(max_length=100, verbose_name='UF')),
('num_tel', models.CharField(max_length=100, verbose_name='Telefone')),
('num_fax', models.CharField(max_length=100, verbose_name='Fax')),
('txt_senha_inicial', models.CharField(max_length=100, verbose_name='Senha')),
('cor_fundo', models.CharField(max_length=100, verbose_name='Cor de fundo')),
('cor_borda', models.CharField(max_length=100, verbose_name='Cor da borda')),
('cor_principal', models.CharField(max_length=100, verbose_name='Cor principal')),
('nom_logo', models.CharField(max_length=100, verbose_name='Logotipo')),
('end_web_casa', models.CharField(max_length=100, verbose_name='HomePage')),
('end_email_casa', models.CharField(max_length=100, verbose_name='E-mail')),
('informacao_geral', models.CharField(max_length=100, verbose_name='Informa\xe7\xe3o Geral')),
],
options={
'verbose_name': 'Casa Legislativa',
'verbose_name_plural': 'Casas Legislativas',
},
),
]

105
comissoes/migrations/0001_initial.py

@ -15,75 +15,102 @@ class Migration(migrations.Migration):
name='CargoComissao', name='CargoComissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome', models.CharField(max_length=50)), ('nome', models.CharField(max_length=50, verbose_name='Cargo')),
('unico', models.BooleanField()), ('unico', models.BooleanField(verbose_name='\xdanico')),
], ],
options={
'verbose_name': 'Cargo de Comiss\xe3o',
'verbose_name_plural': 'Cargos de Comiss\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Comissao', name='Comissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_comissao', models.CharField(max_length=60)), ('nome', models.CharField(max_length=60, verbose_name='Nome')),
('sigla_comissao', models.CharField(max_length=10)), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('data_criacao', models.DateField()), ('data_criacao', models.DateField(verbose_name='Data de Cria\xe7\xe3o')),
('data_extincao', models.DateField(null=True, blank=True)), ('data_extincao', models.DateField(null=True, verbose_name='Data de Extin\xe7\xe3o', blank=True)),
('nome_apelido_temp', models.CharField(max_length=100, null=True, blank=True)), ('nome_apelido_temp', models.CharField(max_length=100, null=True, verbose_name='Apelido', blank=True)),
('data_instalacao_temp', models.DateField(null=True, blank=True)), ('data_instalacao_temp', models.DateField(null=True, verbose_name='Data Instala\xe7\xe3o', blank=True)),
('data_final_prevista_temp', models.DateField(null=True, blank=True)), ('data_final_prevista_temp', models.DateField(null=True, verbose_name='Data Prevista T\xe9rmino', blank=True)),
('data_prorrogada_temp', models.DateField(null=True, blank=True)), ('data_prorrogada_temp', models.DateField(null=True, verbose_name='Novo Prazo', blank=True)),
('data_fim_comissao', models.DateField(null=True, blank=True)), ('data_fim_comissao', models.DateField(null=True, verbose_name='Data T\xe9rmino', blank=True)),
('nome_secretario', models.CharField(max_length=30, null=True, blank=True)), ('nome_secretario', models.CharField(max_length=30, null=True, verbose_name='Secret\xe1rio', blank=True)),
('numero_tel_reuniao', models.CharField(max_length=15, null=True, blank=True)), ('numero_tel_reuniao', models.CharField(max_length=15, null=True, verbose_name='Tel. Sala Reuni\xe3o', blank=True)),
('endereco_secretaria', models.CharField(max_length=100, null=True, blank=True)), ('endereco_secretaria', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o Secretaria', blank=True)),
('numero_tel_secretaria', models.CharField(max_length=15, null=True, blank=True)), ('numero_tel_secretaria', models.CharField(max_length=15, null=True, verbose_name='Tel. Secretaria', blank=True)),
('numero_fax_secretaria', models.CharField(max_length=15, null=True, blank=True)), ('numero_fax_secretaria', models.CharField(max_length=15, null=True, verbose_name='Fax Secretaria', blank=True)),
('descricao_agenda_reuniao', models.CharField(max_length=100, null=True, blank=True)), ('descricao_agenda_reuniao', models.CharField(max_length=100, null=True, verbose_name='Data/Hora Reuni\xe3o', blank=True)),
('local_reuniao', models.CharField(max_length=100, null=True, blank=True)), ('local_reuniao', models.CharField(max_length=100, null=True, verbose_name='Local Reuni\xe3o', blank=True)),
('txt_finalidade', models.TextField(null=True, blank=True)), ('txt_finalidade', models.TextField(null=True, verbose_name='Finalidade', blank=True)),
('endereco_email', models.CharField(max_length=100, null=True, blank=True)), ('email', models.CharField(max_length=100, null=True, verbose_name='E-mail', blank=True)),
('unid_deliberativa', models.BooleanField()), ('unid_deliberativa', models.BooleanField()),
], ],
options={
'verbose_name': 'Comiss\xe3o',
'verbose_name_plural': 'Comiss\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoComissao', name='Composicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('titular', models.BooleanField()),
('data_designacao', models.DateField()),
('data_desligamento', models.DateField(null=True, blank=True)),
('descricao_motivo_desligamento', models.CharField(max_length=150, null=True, blank=True)),
('obs_composicao', models.CharField(max_length=150, null=True, blank=True)),
('cargo', models.ForeignKey(to='comissoes.CargoComissao')),
('comissao', models.ForeignKey(to='comissoes.Comissao')), ('comissao', models.ForeignKey(to='comissoes.Comissao')),
],
),
migrations.CreateModel(
name='Participacao',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('titular', models.BooleanField(verbose_name='Titular')),
('data_designacao', models.DateField(verbose_name='Data Designa\xe7\xe3o')),
('data_desligamento', models.DateField(null=True, verbose_name='Data Desligamento', blank=True)),
('motivo_desligamento', models.CharField(max_length=150, null=True, verbose_name='Motivo Desligamento', blank=True)),
('observacao', models.CharField(max_length=150, null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('cargo', models.ForeignKey(to='comissoes.CargoComissao')),
('composicao', models.ForeignKey(to='comissoes.Composicao')),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
], ],
options={
'verbose_name': 'Composi\xe7\xe3o de Comiss\xe3o',
'verbose_name_plural': 'Composi\xe7\xf5es de Comiss\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='PeriodoCompComissao', name='Periodo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_inicio_periodo', models.DateField()), ('data_inicio', models.DateField(verbose_name='Data In\xedcio')),
('data_fim_periodo', models.DateField(null=True, blank=True)), ('data_fim', models.DateField(null=True, verbose_name='Data Fim', blank=True)),
], ],
options={
'verbose_name': 'Per\xedodo de composi\xe7\xe3o de Comiss\xe3o',
'verbose_name_plural': 'Per\xedodos de composi\xe7\xe3o de Comiss\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoComissao', name='TipoComissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_tipo_comissao', models.CharField(max_length=50)), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
('sigla_natureza_comissao', models.CharField(max_length=1)), ('natureza_comissao', models.CharField(default=b'P', max_length=1, verbose_name='Natureza', choices=[(b'T', 'Tempor\xe1ria'), (b'P', 'Permanente')])),
('sigla_tipo_comissao', models.CharField(max_length=10)), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao_dispositivo_regimental', models.CharField(max_length=50, null=True, blank=True)), ('dispositivo_regimental', models.CharField(max_length=50, null=True, verbose_name='Dispositivo Regimental', blank=True)),
], ],
options={
'verbose_name': 'Tipo de Comiss\xe3o',
'verbose_name_plural': 'Tipos de Comiss\xe3o',
},
), ),
migrations.AddField( migrations.AddField(
model_name='composicaocomissao', model_name='composicao',
name='periodo_comp', name='periodo',
field=models.ForeignKey(to='comissoes.PeriodoCompComissao'), field=models.ForeignKey(to='comissoes.Periodo'),
), ),
migrations.AddField( migrations.AddField(
model_name='comissao', model_name='comissao',
name='tipo_comissao', name='tipo',
field=models.ForeignKey(to='comissoes.TipoComissao'), field=models.ForeignKey(verbose_name='Tipo', to='comissoes.TipoComissao'),
), ),
] ]

32
lexml/migrations/0001_initial.py

@ -14,27 +14,35 @@ class Migration(migrations.Migration):
name='LexmlRegistroProvedor', name='LexmlRegistroProvedor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('id_provedor', models.IntegerField()), ('id_provedor', models.IntegerField(verbose_name='Id do provedor')),
('nome_provedor', models.CharField(max_length=255)), ('nome_provedor', models.CharField(max_length=255, verbose_name='Nome do provedor')),
('sigla_provedor', models.CharField(max_length=15)), ('sigla_provedor', models.CharField(max_length=15)),
('adm_email', models.CharField(max_length=50, null=True, blank=True)), ('adm_email', models.CharField(max_length=50, null=True, verbose_name='E-mail do respons\xe1vel', blank=True)),
('nome_responsavel', models.CharField(max_length=255, null=True, blank=True)), ('nome_responsavel', models.CharField(max_length=255, null=True, verbose_name='Nome do respons\xe1vel', blank=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField(null=True, blank=True)), ('id_responsavel', models.IntegerField(null=True, verbose_name='Id do respons\xe1vel', blank=True)),
('xml_provedor', models.TextField(null=True, blank=True)), ('xml_provedor', models.TextField(null=True, verbose_name='XML fornecido pela equipe do LexML:', blank=True)),
], ],
options={
'verbose_name': 'Provedor Lexml',
'verbose_name_plural': 'Provedores Lexml',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='LexmlRegistroPublicador', name='LexmlRegistroPublicador',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('id_publicador', models.IntegerField()), ('id_publicador', models.IntegerField(verbose_name='Id do publicador')),
('nome_publicador', models.CharField(max_length=255)), ('nome_publicador', models.CharField(max_length=255, verbose_name='Nome do publicador')),
('adm_email', models.CharField(max_length=50, null=True, blank=True)), ('adm_email', models.CharField(max_length=50, null=True, verbose_name='E-mail do respons\xe1vel', blank=True)),
('sigla', models.CharField(max_length=255, null=True, blank=True)), ('sigla', models.CharField(max_length=255, null=True, verbose_name='Sigla do Publicador', blank=True)),
('nome_responsavel', models.CharField(max_length=255, null=True, blank=True)), ('nome_responsavel', models.CharField(max_length=255, null=True, verbose_name='Nome do respons\xe1vel', blank=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField()), ('id_responsavel', models.IntegerField(verbose_name='Id do respons\xe1vel')),
], ],
options={
'verbose_name': 'Publicador Lexml',
'verbose_name_plural': 'Publicadores Lexml',
},
), ),
] ]

248
materia/migrations/0001_initial.py

@ -16,17 +16,25 @@ class Migration(migrations.Migration):
name='AcompMateria', name='AcompMateria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('endereco_email', models.CharField(max_length=100)), ('endereco_email', models.CharField(max_length=100, verbose_name='Endere\xe7o de E-mail')),
('txt_hash', models.CharField(max_length=8)), ('txt_hash', models.CharField(max_length=8)),
], ],
options={
'verbose_name': 'Acompanhamento de Mat\xe9ria',
'verbose_name_plural': 'Acompanhamentos de Mat\xe9ria',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Anexada', name='Anexada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_anexacao', models.DateField()), ('data_anexacao', models.DateField(verbose_name='Data Anexa\xe7\xe3o')),
('data_desanexacao', models.DateField(null=True, blank=True)), ('data_desanexacao', models.DateField(null=True, verbose_name='Data Desanexa\xe7\xe3o', blank=True)),
], ],
options={
'verbose_name': 'Anexada',
'verbose_name_plural': 'Anexadas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='AssuntoMateria', name='AssuntoMateria',
@ -35,26 +43,38 @@ class Migration(migrations.Migration):
('descricao_assunto', models.CharField(max_length=200)), ('descricao_assunto', models.CharField(max_length=200)),
('descricao_dispositivo', models.CharField(max_length=50)), ('descricao_dispositivo', models.CharField(max_length=50)),
], ],
options={
'verbose_name': 'Assunto de Mat\xe9ria',
'verbose_name_plural': 'Assuntos de Mat\xe9ria',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Autor', name='Autor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_autor', models.CharField(max_length=50, null=True, blank=True)), ('nome_autor', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)),
('descricao_cargo', models.CharField(max_length=50, null=True, blank=True)), ('descricao_cargo', models.CharField(max_length=50, null=True, blank=True)),
('col_username', models.CharField(max_length=50, null=True, blank=True)), ('col_username', models.CharField(max_length=50, null=True, blank=True)),
('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)),
('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)), ('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)),
('partido', models.ForeignKey(blank=True, to='parlamentares.Partido', null=True)), ('partido', models.ForeignKey(blank=True, to='parlamentares.Partido', null=True)),
], ],
options={
'verbose_name': 'Autor',
'verbose_name_plural': 'Autores',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Autoria', name='Autoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('primeiro_autor', models.BooleanField()), ('primeiro_autor', models.BooleanField(verbose_name='Primeiro Autor')),
('autor', models.ForeignKey(to='materia.Autor')), ('autor', models.ForeignKey(to='materia.Autor')),
], ],
options={
'verbose_name': 'Autoria',
'verbose_name_plural': 'Autorias',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='DespachoInicial', name='DespachoInicial',
@ -63,17 +83,25 @@ class Migration(migrations.Migration):
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField()),
('comissao', models.ForeignKey(to='comissoes.Comissao')), ('comissao', models.ForeignKey(to='comissoes.Comissao')),
], ],
options={
'verbose_name': 'Despacho Inicial',
'verbose_name_plural': 'Despachos Iniciais',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='DocumentoAcessorio', name='DocumentoAcessorio',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_documento', models.CharField(max_length=30)), ('nome_documento', models.CharField(max_length=30, verbose_name='Descri\xe7\xe3o')),
('data_documento', models.DateField(null=True, blank=True)), ('data_documento', models.DateField(null=True, verbose_name='Data', blank=True)),
('nome_autor_documento', models.CharField(max_length=50, null=True, blank=True)), ('nome_autor_documento', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)),
('txt_ementa', models.TextField(null=True, blank=True)), ('txt_ementa', models.TextField(null=True, verbose_name='Ementa', blank=True)),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(null=True, blank=True)),
], ],
options={
'verbose_name': 'Documento Acess\xf3rio',
'verbose_name_plural': 'Documentos Acess\xf3rios',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='MateriaAssunto', name='MateriaAssunto',
@ -81,63 +109,83 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('assunto', models.ForeignKey(to='materia.AssuntoMateria')), ('assunto', models.ForeignKey(to='materia.AssuntoMateria')),
], ],
options={
'verbose_name': 'Rela\xe7\xe3o Mat\xe9ria - Assunto',
'verbose_name_plural': 'Rela\xe7\xf5es Mat\xe9ria - Assunto',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='MateriaLegislativa', name='MateriaLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_protocolo', models.IntegerField(null=True, blank=True)), ('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)),
('numero_ident_basica', models.IntegerField()), ('numero_ident_basica', models.IntegerField(verbose_name='N\xfamero')),
('ano_ident_basica', models.SmallIntegerField()), ('ano_ident_basica', models.SmallIntegerField(verbose_name='Ano')),
('data_apresentacao', models.DateField(null=True, blank=True)), ('data_apresentacao', models.DateField(null=True, verbose_name='Data Apresenta\xe7\xe3o', blank=True)),
('tipo_apresentacao', models.CharField(max_length=1, null=True, blank=True)), ('tipo_apresentacao', models.CharField(max_length=1, null=True, verbose_name='Tipo de Apresenta\xe7\xe3o', blank=True)),
('data_publicacao', models.DateField(null=True, blank=True)), ('data_publicacao', models.DateField(null=True, verbose_name='Data Publica\xe7\xe3o', blank=True)),
('numero_origem_externa', models.CharField(max_length=5, null=True, blank=True)), ('numero_origem_externa', models.CharField(max_length=5, null=True, verbose_name='N\xfamero', blank=True)),
('ano_origem_externa', models.SmallIntegerField(null=True, blank=True)), ('ano_origem_externa', models.SmallIntegerField(null=True, verbose_name='Ano', blank=True)),
('data_origem_externa', models.DateField(null=True, blank=True)), ('data_origem_externa', models.DateField(null=True, verbose_name='Data', blank=True)),
('nome_apelido', models.CharField(max_length=50, null=True, blank=True)), ('nome_apelido', models.CharField(max_length=50, null=True, verbose_name='Apelido', blank=True)),
('numero_dias_prazo', models.IntegerField(null=True, blank=True)), ('numero_dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)),
('data_fim_prazo', models.DateField(null=True, blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)),
('indicador_tramitacao', models.BooleanField()), ('indicador_tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')),
('polemica', models.NullBooleanField()), ('polemica', models.NullBooleanField(verbose_name='Mat\xe9ria Pol\xeamica?')),
('descricao_objeto', models.CharField(max_length=150, null=True, blank=True)), ('descricao_objeto', models.CharField(max_length=150, null=True, verbose_name='Objeto', blank=True)),
('complementar', models.NullBooleanField()), ('complementar', models.NullBooleanField(verbose_name='\xc9 Complementar?')),
('txt_ementa', models.TextField()), ('txt_ementa', models.TextField(verbose_name='Ementa')),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(null=True, verbose_name='Indexa\xe7\xe3o', blank=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(null=True, blank=True)),
('anexadas', models.ManyToManyField(related_name='anexo_de', through='materia.Anexada', to='materia.MateriaLegislativa')), ('anexadas', models.ManyToManyField(related_name='anexo_de', through='materia.Anexada', to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Mat\xe9ria Legislativa',
'verbose_name_plural': 'Mat\xe9rias Legislativas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Numeracao', name='Numeracao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField()),
('numero_materia', models.CharField(max_length=5)), ('numero_materia', models.CharField(max_length=5, verbose_name='N\xfamero')),
('ano_materia', models.SmallIntegerField()), ('ano_materia', models.SmallIntegerField(verbose_name='Ano')),
('data_materia', models.DateField(null=True, blank=True)), ('data_materia', models.DateField(null=True, verbose_name='Data', blank=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Numera\xe7\xe3o',
'verbose_name_plural': 'Numera\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Orgao', name='Orgao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_orgao', models.CharField(max_length=60)), ('nome_orgao', models.CharField(max_length=60, verbose_name='Nome')),
('sigla_orgao', models.CharField(max_length=10)), ('sigla_orgao', models.CharField(max_length=10, verbose_name='Sigla')),
('unid_deliberativa', models.BooleanField()), ('unid_deliberativa', models.BooleanField(verbose_name='Unidade Deliberativa')),
('endereco_orgao', models.CharField(max_length=100, null=True, blank=True)), ('endereco_orgao', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o', blank=True)),
('numero_tel_orgao', models.CharField(max_length=50, null=True, blank=True)), ('numero_tel_orgao', models.CharField(max_length=50, null=True, verbose_name='Telefone', blank=True)),
], ],
options={
'verbose_name': '\xd3rg\xe3o',
'verbose_name_plural': '\xd3rg\xe3os',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Origem', name='Origem',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_origem', models.CharField(max_length=10)), ('sigla_origem', models.CharField(max_length=10, verbose_name='Sigla')),
('nome_origem', models.CharField(max_length=50)), ('nome_origem', models.CharField(max_length=50, verbose_name='Nome')),
], ],
options={
'verbose_name': 'Origem',
'verbose_name_plural': 'Origens',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Parecer', name='Parecer',
@ -148,14 +196,18 @@ class Migration(migrations.Migration):
('txt_parecer', models.TextField(null=True, blank=True)), ('txt_parecer', models.TextField(null=True, blank=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Parecer',
'verbose_name_plural': 'Pareceres',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Proposicao', name='Proposicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_envio', models.DateTimeField()), ('data_envio', models.DateTimeField(null=True)),
('data_recebimento', models.DateTimeField(null=True, blank=True)), ('data_recebimento', models.DateTimeField(null=True, blank=True)),
('txt_descricao', models.CharField(max_length=100)), ('txt_descricao', models.CharField(max_length=100, verbose_name='Descri\xe7\xe3o')),
('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)), ('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)),
('data_devolucao', models.DateTimeField(null=True, blank=True)), ('data_devolucao', models.DateTimeField(null=True, blank=True)),
('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)), ('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)),
@ -163,6 +215,10 @@ class Migration(migrations.Migration):
('autor', models.ForeignKey(to='materia.Autor')), ('autor', models.ForeignKey(to='materia.Autor')),
('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)), ('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)),
], ],
options={
'verbose_name': 'Proposi\xe7\xe3o',
'verbose_name_plural': 'Proposi\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='RegimeTramitacao', name='RegimeTramitacao',
@ -170,112 +226,152 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_regime_tramitacao', models.CharField(max_length=50)), ('descricao_regime_tramitacao', models.CharField(max_length=50)),
], ],
options={
'verbose_name': 'Regime Tramita\xe7\xe3o',
'verbose_name_plural': 'Regimes Tramita\xe7\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Relatoria', name='Relatoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_desig_relator', models.DateField()), ('data_desig_relator', models.DateField(verbose_name='Data Designa\xe7\xe3o')),
('data_destit_relator', models.DateField(null=True, blank=True)), ('data_destit_relator', models.DateField(null=True, verbose_name='Data Destitui\xe7\xe3o', blank=True)),
('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(verbose_name='Localiza\xe7\xe3o Atual', blank=True, to='comissoes.Comissao', null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')),
], ],
options={
'verbose_name': 'Relatoria',
'verbose_name_plural': 'Relatorias',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='StatusTramitacao', name='StatusTramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_status', models.CharField(max_length=10)), ('sigla_status', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao_status', models.CharField(max_length=60)), ('descricao_status', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')),
('fim_tramitacao', models.BooleanField()), ('fim_tramitacao', models.BooleanField()),
('retorno_tramitacao', models.BooleanField()), ('retorno_tramitacao', models.BooleanField()),
], ],
options={
'verbose_name': 'Status de Tramita\xe7\xe3o',
'verbose_name_plural': 'Status de Tramita\xe7\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoAutor', name='TipoAutor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_tipo_autor', models.CharField(max_length=50)), ('descricao_tipo_autor', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
], ],
options={
'verbose_name': 'Tipo de Autor',
'verbose_name_plural': 'Tipos de Autor',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoDocumento', name='TipoDocumento',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_tipo_documento', models.CharField(max_length=50)), ('descricao_tipo_documento', models.CharField(max_length=50, verbose_name='Tipo Documento')),
], ],
options={
'verbose_name': 'Tipo de Documento',
'verbose_name_plural': 'Tipos de Documento',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoFimRelatoria', name='TipoFimRelatoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_fim_relatoria', models.CharField(max_length=50)), ('descricao_fim_relatoria', models.CharField(max_length=50, verbose_name='Tipo Fim Relatoria')),
], ],
options={
'verbose_name': 'Tipo Fim de Relatoria',
'verbose_name_plural': 'Tipos Fim de Relatoria',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoMateriaLegislativa', name='TipoMateriaLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_tipo_materia', models.CharField(max_length=5)), ('sigla_tipo_materia', models.CharField(max_length=5, verbose_name='Sigla')),
('descricao_tipo_materia', models.CharField(max_length=50)), ('descricao_tipo_materia', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o ')),
('num_automatica', models.BooleanField()), ('num_automatica', models.BooleanField()),
('quorum_minimo_votacao', models.IntegerField()), ('quorum_minimo_votacao', models.IntegerField()),
], ],
options={
'verbose_name': 'Tipo de Mat\xe9ria Legislativa',
'verbose_name_plural': 'Tipos de Mat\xe9rias Legislativas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoProposicao', name='TipoProposicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_tipo_proposicao', models.CharField(max_length=50)), ('descricao_tipo_proposicao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
('mat_ou_doc', models.BooleanField()), ('mat_ou_doc', models.BooleanField(verbose_name='Gera')),
('tipo_mat_ou_doc', models.IntegerField()), ('tipo_mat_ou_doc', models.IntegerField(verbose_name='Tipo Documento')),
('nome_modelo', models.CharField(max_length=50)), ('nome_modelo', models.CharField(max_length=50, verbose_name='Modelo XML')),
], ],
options={
'verbose_name': 'Tipo de Proposi\xe7\xe3o',
'verbose_name_plural': 'Tipos de Proposi\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Tramitacao', name='Tramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_tramitacao', models.DateField(null=True, blank=True)), ('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)),
('data_encaminha', models.DateField(null=True, blank=True)), ('data_encaminha', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)),
('ult_tramitacao', models.BooleanField()), ('ult_tramitacao', models.BooleanField()),
('urgencia', models.BooleanField()), ('urgencia', models.BooleanField(verbose_name='Urgente ?')),
('sigla_turno', models.CharField(max_length=1, null=True, blank=True)), ('sigla_turno', models.CharField(max_length=1, null=True, verbose_name='Turno', blank=True)),
('txt_tramitacao', models.TextField(null=True, blank=True)), ('txt_tramitacao', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)),
('data_fim_prazo', models.DateField(null=True, blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('status', models.ForeignKey(blank=True, to='materia.StatusTramitacao', null=True)), ('status', models.ForeignKey(verbose_name='Status', blank=True, to='materia.StatusTramitacao', null=True)),
], ],
options={
'verbose_name': 'Tramita\xe7\xe3o',
'verbose_name_plural': 'Tramita\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='UnidadeTramitacao', name='UnidadeTramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(verbose_name='Comiss\xe3o', blank=True, to='comissoes.Comissao', null=True)),
('orgao', models.ForeignKey(blank=True, to='materia.Orgao', null=True)), ('orgao', models.ForeignKey(verbose_name='\xd3rg\xe3o', blank=True, to='materia.Orgao', null=True)),
('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)), ('parlamentar', models.ForeignKey(verbose_name='Parlamentar', blank=True, to='parlamentares.Parlamentar', null=True)),
], ],
options={
'verbose_name': 'Unidade de Tramita\xe7\xe3o',
'verbose_name_plural': 'Unidades de Tramita\xe7\xe3o',
},
), ),
migrations.AddField( migrations.AddField(
model_name='tramitacao', model_name='tramitacao',
name='unid_tram_dest', name='unid_tram_dest',
field=models.ForeignKey(related_name='+', blank=True, to='materia.UnidadeTramitacao', null=True), field=models.ForeignKey(related_name='+', verbose_name='Unidade Destino', blank=True, to='materia.UnidadeTramitacao', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='tramitacao', model_name='tramitacao',
name='unid_tram_local', name='unid_tram_local',
field=models.ForeignKey(related_name='+', blank=True, to='materia.UnidadeTramitacao', null=True), field=models.ForeignKey(related_name='+', verbose_name='Unidade Local', blank=True, to='materia.UnidadeTramitacao', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='relatoria', model_name='relatoria',
name='tipo_fim_relatoria', name='tipo_fim_relatoria',
field=models.ForeignKey(blank=True, to='materia.TipoFimRelatoria', null=True), field=models.ForeignKey(verbose_name='Motivo Fim Relatoria', blank=True, to='materia.TipoFimRelatoria', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='proposicao', model_name='proposicao',
name='tipo', name='tipo',
field=models.ForeignKey(to='materia.TipoProposicao'), field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoProposicao'),
), ),
migrations.AddField( migrations.AddField(
model_name='parecer', model_name='parecer',
@ -285,27 +381,27 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='numeracao', model_name='numeracao',
name='tipo_materia', name='tipo_materia',
field=models.ForeignKey(to='materia.TipoMateriaLegislativa'), field=models.ForeignKey(verbose_name='Tipo de Mat\xe9ria', to='materia.TipoMateriaLegislativa'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='local_origem_externa', name='local_origem_externa',
field=models.ForeignKey(blank=True, to='materia.Origem', null=True), field=models.ForeignKey(verbose_name='Local Origem', blank=True, to='materia.Origem', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='regime_tramitacao', name='regime_tramitacao',
field=models.ForeignKey(to='materia.RegimeTramitacao'), field=models.ForeignKey(verbose_name='Regime Tramita\xe7\xe3o', to='materia.RegimeTramitacao'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='tipo_id_basica', name='tipo_id_basica',
field=models.ForeignKey(to='materia.TipoMateriaLegislativa'), field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoMateriaLegislativa'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='tipo_origem_externa', name='tipo_origem_externa',
field=models.ForeignKey(related_name='+', blank=True, to='materia.TipoMateriaLegislativa', null=True), field=models.ForeignKey(related_name='+', verbose_name='Tipo', blank=True, to='materia.TipoMateriaLegislativa', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='materiaassunto', model_name='materiaassunto',
@ -320,7 +416,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='documentoacessorio', model_name='documentoacessorio',
name='tipo', name='tipo',
field=models.ForeignKey(to='materia.TipoDocumento'), field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoDocumento'),
), ),
migrations.AddField( migrations.AddField(
model_name='despachoinicial', model_name='despachoinicial',
@ -335,7 +431,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='autor', model_name='autor',
name='tipo', name='tipo',
field=models.ForeignKey(to='materia.TipoAutor'), field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoAutor'),
), ),
migrations.AddField( migrations.AddField(
model_name='anexada', model_name='anexada',

19
materia/migrations/0002_auto_20150619_1807.py

@ -1,19 +0,0 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('materia', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='proposicao',
name='data_envio',
field=models.DateTimeField(null=True),
),
]

80
norma/migrations/0001_initial.py

@ -15,59 +15,75 @@ class Migration(migrations.Migration):
name='AssuntoNorma', name='AssuntoNorma',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_assunto', models.CharField(max_length=50)), ('descricao_assunto', models.CharField(max_length=50, verbose_name='Assunto')),
('descricao_estendida', models.CharField(max_length=250, null=True, blank=True)), ('descricao_estendida', models.CharField(max_length=250, null=True, verbose_name='Descri\xe7\xe3o', blank=True)),
], ],
options={
'verbose_name': 'Assunto de Norma',
'verbose_name_plural': 'Assuntos de Norma',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='LegislacaoCitada', name='LegislacaoCitada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_disposicoes', models.CharField(max_length=15, null=True, blank=True)), ('descricao_disposicoes', models.CharField(max_length=15, null=True, verbose_name='Disposi\xe7\xe3o', blank=True)),
('descricao_parte', models.CharField(max_length=8, null=True, blank=True)), ('descricao_parte', models.CharField(max_length=8, null=True, verbose_name='Parte', blank=True)),
('descricao_livro', models.CharField(max_length=7, null=True, blank=True)), ('descricao_livro', models.CharField(max_length=7, null=True, verbose_name='Livro', blank=True)),
('descricao_titulo', models.CharField(max_length=7, null=True, blank=True)), ('descricao_titulo', models.CharField(max_length=7, null=True, verbose_name='T\xedtulo', blank=True)),
('descricao_capitulo', models.CharField(max_length=7, null=True, blank=True)), ('descricao_capitulo', models.CharField(max_length=7, null=True, verbose_name='Cap\xedtulo', blank=True)),
('descricao_secao', models.CharField(max_length=7, null=True, blank=True)), ('descricao_secao', models.CharField(max_length=7, null=True, verbose_name='Se\xe7\xe3o', blank=True)),
('descricao_subsecao', models.CharField(max_length=7, null=True, blank=True)), ('descricao_subsecao', models.CharField(max_length=7, null=True, verbose_name='Subse\xe7\xe3o', blank=True)),
('descricao_artigo', models.CharField(max_length=4, null=True, blank=True)), ('descricao_artigo', models.CharField(max_length=4, null=True, verbose_name='Artigo', blank=True)),
('descricao_paragrafo', models.CharField(max_length=3, null=True, blank=True)), ('descricao_paragrafo', models.CharField(max_length=3, null=True, verbose_name='Par\xe1grafo', blank=True)),
('descricao_inciso', models.CharField(max_length=10, null=True, blank=True)), ('descricao_inciso', models.CharField(max_length=10, null=True, verbose_name='Inciso', blank=True)),
('descricao_alinea', models.CharField(max_length=3, null=True, blank=True)), ('descricao_alinea', models.CharField(max_length=3, null=True, verbose_name='Al\xednea', blank=True)),
('descricao_item', models.CharField(max_length=3, null=True, blank=True)), ('descricao_item', models.CharField(max_length=3, null=True, verbose_name='Item', blank=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Mat\xe9ria Legislativa',
'verbose_name_plural': 'Mat\xe9rias Legislativas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='NormaJuridica', name='NormaJuridica',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_norma', models.IntegerField()), ('numero_norma', models.IntegerField(verbose_name='N\xfamero')),
('ano_norma', models.SmallIntegerField()), ('ano_norma', models.SmallIntegerField(verbose_name='Ano')),
('tipo_esfera_federacao', models.CharField(max_length=1)), ('tipo_esfera_federacao', models.CharField(max_length=1, verbose_name='Esfera Federa\xe7\xe3o')),
('data_norma', models.DateField(null=True, blank=True)), ('data_norma', models.DateField(null=True, verbose_name='Data', blank=True)),
('data_publicacao', models.DateField(null=True, blank=True)), ('data_publicacao', models.DateField(null=True, verbose_name='Data Publica\xe7\xe3o', blank=True)),
('descricao_veiculo_publicacao', models.CharField(max_length=30, null=True, blank=True)), ('descricao_veiculo_publicacao', models.CharField(max_length=30, null=True, verbose_name='Ve\xedculo Publica\xe7\xe3o', blank=True)),
('numero_pag_inicio_publ', models.IntegerField(null=True, blank=True)), ('numero_pag_inicio_publ', models.IntegerField(null=True, verbose_name='Pg. In\xedcio', blank=True)),
('numero_pag_fim_publ', models.IntegerField(null=True, blank=True)), ('numero_pag_fim_publ', models.IntegerField(null=True, verbose_name='Pg. Fim', blank=True)),
('txt_ementa', models.TextField()), ('txt_ementa', models.TextField(verbose_name='Ementa')),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(null=True, verbose_name='Indexa\xe7\xe3o', blank=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('complemento', models.NullBooleanField()), ('complemento', models.NullBooleanField(verbose_name='Complementar ?')),
('data_vigencia', models.DateField(null=True, blank=True)), ('data_vigencia', models.DateField(null=True, blank=True)),
('timestamp', models.DateTimeField()), ('timestamp', models.DateTimeField()),
('assunto', models.ForeignKey(to='norma.AssuntoNorma')), ('assunto', models.ForeignKey(to='norma.AssuntoNorma')),
('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)), ('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)),
], ],
options={
'verbose_name': 'Norma Jur\xeddica',
'verbose_name_plural': 'Normas Jur\xeddicas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoNormaJuridica', name='TipoNormaJuridica',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('voc_lexml', models.CharField(max_length=50, null=True, blank=True)), ('voc_lexml', models.CharField(max_length=50, null=True, verbose_name='Equivalente LexML', blank=True)),
('sigla_tipo_norma', models.CharField(max_length=3)), ('sigla_tipo_norma', models.CharField(max_length=3, verbose_name='Sigla')),
('descricao_tipo_norma', models.CharField(max_length=50)), ('descricao_tipo_norma', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
], ],
options={
'verbose_name': 'Tipo de Norma Jur\xeddica',
'verbose_name_plural': 'Tipos de Norma Jur\xeddica',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='VinculoNormaJuridica', name='VinculoNormaJuridica',
@ -77,11 +93,15 @@ class Migration(migrations.Migration):
('norma_referente', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), ('norma_referente', models.ForeignKey(related_name='+', to='norma.NormaJuridica')),
('norma_referida', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), ('norma_referida', models.ForeignKey(related_name='+', to='norma.NormaJuridica')),
], ],
options={
'verbose_name': 'V\xednculo entre Normas Jur\xeddicas',
'verbose_name_plural': 'V\xednculos entre Normas Jur\xeddicas',
},
), ),
migrations.AddField( migrations.AddField(
model_name='normajuridica', model_name='normajuridica',
name='tipo', name='tipo',
field=models.ForeignKey(to='norma.TipoNormaJuridica'), field=models.ForeignKey(verbose_name='Tipo', to='norma.TipoNormaJuridica'),
), ),
migrations.AddField( migrations.AddField(
model_name='legislacaocitada', model_name='legislacaocitada',

186
parlamentares/migrations/0001_initial.py

@ -14,17 +14,25 @@ class Migration(migrations.Migration):
name='CargoMesa', name='CargoMesa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome', models.CharField(max_length=50)), ('nome', models.CharField(max_length=50, verbose_name='Cargo na Mesa')),
('unico', models.BooleanField()), ('unico', models.BooleanField(verbose_name='Cargo \xdanico')),
], ],
options={
'verbose_name': 'Cargo na Mesa',
'verbose_name_plural': 'Cargos na Mesa',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Coligacao', name='Coligacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_coligacao', models.CharField(max_length=50)), ('nome_coligacao', models.CharField(max_length=50, verbose_name='Nome')),
('numero_votos_coligacao', models.IntegerField(null=True, blank=True)), ('numero_votos_coligacao', models.IntegerField(null=True, verbose_name='N\xba Votos Recebidos', blank=True)),
], ],
options={
'verbose_name': 'Coliga\xe7\xe3o',
'verbose_name_plural': 'Coliga\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoColigacao', name='ComposicaoColigacao',
@ -39,35 +47,51 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('cargo', models.ForeignKey(to='parlamentares.CargoMesa')), ('cargo', models.ForeignKey(to='parlamentares.CargoMesa')),
], ],
options={
'verbose_name': 'Ocupa\xe7\xe3o de cargo na Mesa',
'verbose_name_plural': 'Ocupa\xe7\xf5es de cargo na Mesa',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Dependente', name='Dependente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_dependente', models.CharField(max_length=50)), ('nome_dependente', models.CharField(max_length=50, verbose_name='Nome')),
('sexo', models.CharField(max_length=1)), ('sexo', models.CharField(max_length=1, verbose_name='Sexo')),
('data_nascimento', models.DateField(null=True, blank=True)), ('data_nascimento', models.DateField(null=True, verbose_name='Data Nascimento', blank=True)),
('numero_cpf', models.CharField(max_length=14, null=True, blank=True)), ('numero_cpf', models.CharField(max_length=14, null=True, verbose_name='CPF', blank=True)),
('numero_rg', models.CharField(max_length=15, null=True, blank=True)), ('numero_rg', models.CharField(max_length=15, null=True, verbose_name='RG', blank=True)),
('numero_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), ('numero_tit_eleitor', models.CharField(max_length=15, null=True, verbose_name='N\xba T\xedtulo Eleitor', blank=True)),
], ],
options={
'verbose_name': 'Dependente',
'verbose_name_plural': 'Dependentes',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Filiacao', name='Filiacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_filiacao', models.DateField()), ('data_filiacao', models.DateField(verbose_name='Data Filia\xe7\xe3o')),
('data_desfiliacao', models.DateField(null=True, blank=True)), ('data_desfiliacao', models.DateField(null=True, verbose_name='Data Desfilia\xe7\xe3o', blank=True)),
], ],
options={
'verbose_name': 'Filia\xe7\xe3o',
'verbose_name_plural': 'Filia\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Legislatura', name='Legislatura',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_inicio', models.DateField()), ('data_inicio', models.DateField(verbose_name='Data In\xedcio')),
('data_fim', models.DateField()), ('data_fim', models.DateField(verbose_name='Data Fim')),
('data_eleicao', models.DateField()), ('data_eleicao', models.DateField(verbose_name='Data Elei\xe7\xe3o')),
], ],
options={
'verbose_name': 'Legislatura',
'verbose_name_plural': 'Legislaturas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Localidade', name='Localidade',
@ -79,96 +103,128 @@ class Migration(migrations.Migration):
('sigla_uf', models.CharField(max_length=2, null=True, blank=True)), ('sigla_uf', models.CharField(max_length=2, null=True, blank=True)),
('sigla_regiao', models.CharField(max_length=2, null=True, blank=True)), ('sigla_regiao', models.CharField(max_length=2, null=True, blank=True)),
], ],
options={
'verbose_name': 'Munic\xedpio',
'verbose_name_plural': 'Munic\xedpios',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Mandato', name='Mandato',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('tipo_causa_fim_mandato', models.IntegerField(null=True, blank=True)), ('tipo_causa_fim_mandato', models.IntegerField(null=True, blank=True)),
('data_fim_mandato', models.DateField(null=True, blank=True)), ('data_fim_mandato', models.DateField(null=True, verbose_name='Fim do Mandato', blank=True)),
('numero_votos_recebidos', models.IntegerField(null=True, blank=True)), ('numero_votos_recebidos', models.IntegerField(null=True, verbose_name='Votos Recebidos', blank=True)),
('data_expedicao_diploma', models.DateField(null=True, blank=True)), ('data_expedicao_diploma', models.DateField(null=True, verbose_name='Expedi\xe7\xe3o do Diploma', blank=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('coligacao', models.ForeignKey(blank=True, to='parlamentares.Coligacao', null=True)), ('coligacao', models.ForeignKey(verbose_name='Coliga\xe7\xe3o', blank=True, to='parlamentares.Coligacao', null=True)),
('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura')),
], ],
options={
'verbose_name': 'Mandato',
'verbose_name_plural': 'Mandatos',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='NivelInstrucao', name='NivelInstrucao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nivel_instrucao', models.CharField(max_length=50)), ('nivel_instrucao', models.CharField(max_length=50, verbose_name='N\xedvel de Instru\xe7\xe3o')),
], ],
options={
'verbose_name': 'N\xedvel Instru\xe7\xe3o',
'verbose_name_plural': 'N\xedveis Instru\xe7\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Parlamentar', name='Parlamentar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_completo', models.CharField(max_length=50)), ('nome_completo', models.CharField(max_length=50, verbose_name='Nome Completo')),
('nome_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('nome_parlamentar', models.CharField(max_length=50, null=True, verbose_name='Nome Parlamentar', blank=True)),
('sexo', models.CharField(max_length=1)), ('sexo', models.CharField(max_length=1, verbose_name='Sexo')),
('data_nascimento', models.DateField(null=True, blank=True)), ('data_nascimento', models.DateField(null=True, verbose_name='Data Nascimento', blank=True)),
('numero_cpf', models.CharField(max_length=14, null=True, blank=True)), ('numero_cpf', models.CharField(max_length=14, null=True, verbose_name='C.P.F', blank=True)),
('numero_rg', models.CharField(max_length=15, null=True, blank=True)), ('numero_rg', models.CharField(max_length=15, null=True, verbose_name='R.G.', blank=True)),
('numero_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), ('numero_tit_eleitor', models.CharField(max_length=15, null=True, verbose_name='T\xedtulo de Eleitor', blank=True)),
('cod_casa', models.IntegerField()), ('cod_casa', models.IntegerField()),
('numero_gab_parlamentar', models.CharField(max_length=10, null=True, blank=True)), ('numero_gab_parlamentar', models.CharField(max_length=10, null=True, verbose_name='N\xba Gabinete', blank=True)),
('numero_tel_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('numero_tel_parlamentar', models.CharField(max_length=50, null=True, verbose_name='Telefone', blank=True)),
('numero_fax_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('numero_fax_parlamentar', models.CharField(max_length=50, null=True, verbose_name='Fax', blank=True)),
('endereco_residencial', models.CharField(max_length=100, null=True, blank=True)), ('endereco_residencial', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o Residencial', blank=True)),
('numero_cep_resid', models.CharField(max_length=9, null=True, blank=True)), ('numero_cep_resid', models.CharField(max_length=9, null=True, verbose_name='CEP', blank=True)),
('numero_tel_resid', models.CharField(max_length=50, null=True, blank=True)), ('numero_tel_resid', models.CharField(max_length=50, null=True, verbose_name='Telefone Residencial', blank=True)),
('numero_fax_resid', models.CharField(max_length=50, null=True, blank=True)), ('numero_fax_resid', models.CharField(max_length=50, null=True, verbose_name='Fax Residencial', blank=True)),
('endereco_web', models.CharField(max_length=100, null=True, blank=True)), ('endereco_web', models.CharField(max_length=100, null=True, verbose_name='HomePage', blank=True)),
('nome_profissao', models.CharField(max_length=50, null=True, blank=True)), ('nome_profissao', models.CharField(max_length=50, null=True, verbose_name='Profiss\xe3o', blank=True)),
('endereco_email', models.CharField(max_length=100, null=True, blank=True)), ('endereco_email', models.CharField(max_length=100, null=True, verbose_name='Correio Eletr\xf4nico', blank=True)),
('descricao_local_atuacao', models.CharField(max_length=100, null=True, blank=True)), ('descricao_local_atuacao', models.CharField(max_length=100, null=True, verbose_name='Locais de Atua\xe7\xe3o', blank=True)),
('ativo', models.BooleanField()), ('ativo', models.BooleanField(verbose_name='Ativo na Casa?')),
('txt_biografia', models.TextField(null=True, blank=True)), ('txt_biografia', models.TextField(null=True, verbose_name='Biografia', blank=True)),
('unid_deliberativa', models.BooleanField()), ('unid_deliberativa', models.BooleanField()),
('localidade_resid', models.ForeignKey(blank=True, to='parlamentares.Localidade', null=True)), ('localidade_resid', models.ForeignKey(verbose_name='Munic\xedpio', blank=True, to='parlamentares.Localidade', null=True)),
('nivel_instrucao', models.ForeignKey(blank=True, to='parlamentares.NivelInstrucao', null=True)), ('nivel_instrucao', models.ForeignKey(verbose_name='N\xedvel Instru\xe7\xe3o', blank=True, to='parlamentares.NivelInstrucao', null=True)),
], ],
options={
'verbose_name': 'Parlamentar',
'verbose_name_plural': 'Parlamentares',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Partido', name='Partido',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_partido', models.CharField(max_length=9)), ('sigla_partido', models.CharField(max_length=9, verbose_name='Sigla')),
('nome_partido', models.CharField(max_length=50)), ('nome_partido', models.CharField(max_length=50, verbose_name='Nome')),
('data_criacao', models.DateField(null=True, blank=True)), ('data_criacao', models.DateField(null=True, verbose_name='Data Cria\xe7\xe3o', blank=True)),
('data_extincao', models.DateField(null=True, blank=True)), ('data_extincao', models.DateField(null=True, verbose_name='Data Extin\xe7\xe3o', blank=True)),
], ],
options={
'verbose_name': 'Partido',
'verbose_name_plural': 'Partidos',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='SessaoLegislativa', name='SessaoLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero', models.IntegerField()), ('numero', models.IntegerField(verbose_name='N\xfamero')),
('tipo', models.CharField(max_length=1)), ('tipo', models.CharField(max_length=1, verbose_name='Tipo')),
('data_inicio', models.DateField()), ('data_inicio', models.DateField(verbose_name='Data In\xedcio')),
('data_fim', models.DateField()), ('data_fim', models.DateField(verbose_name='Data Fim')),
('data_inicio_intervalo', models.DateField(null=True, blank=True)), ('data_inicio_intervalo', models.DateField(null=True, verbose_name='In\xedcio Intervalo', blank=True)),
('data_fim_intervalo', models.DateField(null=True, blank=True)), ('data_fim_intervalo', models.DateField(null=True, verbose_name='Fim Intervalo', blank=True)),
('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(to='parlamentares.Legislatura')),
], ],
options={
'verbose_name': 'Sess\xe3o Legislativa',
'verbose_name_plural': 'Sess\xf5es Legislativas',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='SituacaoMilitar', name='SituacaoMilitar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_tipo_situacao', models.CharField(max_length=50)), ('descricao_tipo_situacao', models.CharField(max_length=50, verbose_name='Situa\xe7\xe3o Militar')),
], ],
options={
'verbose_name': 'Tipo Situa\xe7\xe3o Militar',
'verbose_name_plural': 'Tipos Situa\xe7\xf5es Militares',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoAfastamento', name='TipoAfastamento',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_afastamento', models.CharField(max_length=50)), ('descricao_afastamento', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
('afastamento', models.BooleanField()), ('afastamento', models.BooleanField(verbose_name='Indicador')),
('fim_mandato', models.BooleanField()), ('fim_mandato', models.BooleanField(verbose_name='Indicador')),
('descricao_dispositivo', models.CharField(max_length=50, null=True, blank=True)), ('descricao_dispositivo', models.CharField(max_length=50, null=True, verbose_name='Dispositivo', blank=True)),
], ],
options={
'verbose_name': 'Tipo de Afastamento',
'verbose_name_plural': 'Tipos de Afastamento',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoDependente', name='TipoDependente',
@ -176,11 +232,15 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('descricao_tipo_dependente', models.CharField(max_length=50)), ('descricao_tipo_dependente', models.CharField(max_length=50)),
], ],
options={
'verbose_name': 'Tipo de Dependente',
'verbose_name_plural': 'Tipos de Dependente',
},
), ),
migrations.AddField( migrations.AddField(
model_name='parlamentar', model_name='parlamentar',
name='situacao_militar', name='situacao_militar',
field=models.ForeignKey(blank=True, to='parlamentares.SituacaoMilitar', null=True), field=models.ForeignKey(verbose_name='Situa\xe7\xe3o Militar', blank=True, to='parlamentares.SituacaoMilitar', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='mandato', model_name='mandato',
@ -200,7 +260,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='filiacao', model_name='filiacao',
name='partido', name='partido',
field=models.ForeignKey(to='parlamentares.Partido'), field=models.ForeignKey(verbose_name='Partido', to='parlamentares.Partido'),
), ),
migrations.AddField( migrations.AddField(
model_name='dependente', model_name='dependente',
@ -210,7 +270,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='dependente', model_name='dependente',
name='tipo_dependente', name='tipo_dependente',
field=models.ForeignKey(to='parlamentares.TipoDependente'), field=models.ForeignKey(verbose_name='Tipo', to='parlamentares.TipoDependente'),
), ),
migrations.AddField( migrations.AddField(
model_name='composicaomesa', model_name='composicaomesa',
@ -230,6 +290,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='coligacao', model_name='coligacao',
name='legislatura', name='legislatura',
field=models.ForeignKey(to='parlamentares.Legislatura'), field=models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura'),
), ),
] ]

94
protocoloadm/migrations/0001_initial.py

@ -15,46 +15,54 @@ class Migration(migrations.Migration):
name='DocumentoAcessorioAdministrativo', name='DocumentoAcessorioAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_documento', models.CharField(max_length=30)), ('nome_documento', models.CharField(max_length=30, verbose_name='Nome')),
('nome_arquivo', models.CharField(max_length=100)), ('nome_arquivo', models.CharField(max_length=100, verbose_name='Arquivo')),
('data_documento', models.DateField(null=True, blank=True)), ('data_documento', models.DateField(null=True, verbose_name='Data', blank=True)),
('nome_autor_documento', models.CharField(max_length=50, null=True, blank=True)), ('nome_autor_documento', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)),
('txt_assunto', models.TextField(null=True, blank=True)), ('txt_assunto', models.TextField(null=True, verbose_name='Assunto', blank=True)),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(null=True, blank=True)),
], ],
options={
'verbose_name': 'Documento Acess\xf3rio',
'verbose_name_plural': 'Documentos Acess\xf3rios',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='DocumentoAdministrativo', name='DocumentoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_documento', models.IntegerField()), ('numero_documento', models.IntegerField(verbose_name='N\xfamero')),
('ano_documento', models.SmallIntegerField()), ('ano_documento', models.SmallIntegerField(verbose_name='Ano')),
('data_documento', models.DateField()), ('data_documento', models.DateField(verbose_name='Data')),
('numero_protocolo', models.IntegerField(null=True, blank=True)), ('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)),
('txt_interessado', models.CharField(max_length=50, null=True, blank=True)), ('txt_interessado', models.CharField(max_length=50, null=True, verbose_name='Interessado', blank=True)),
('numero_dias_prazo', models.IntegerField(null=True, blank=True)), ('numero_dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)),
('data_fim_prazo', models.DateField(null=True, blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)),
('tramitacao', models.BooleanField()), ('tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')),
('txt_assunto', models.TextField()), ('txt_assunto', models.TextField(verbose_name='Assunto')),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), ('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)),
], ],
options={
'verbose_name': 'Documento Administrativo',
'verbose_name_plural': 'Documentos Administrativos',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Protocolo', name='Protocolo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_protocolo', models.IntegerField(null=True, blank=True)), ('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)),
('ano_protocolo', models.SmallIntegerField()), ('ano_protocolo', models.SmallIntegerField()),
('data_protocolo', models.DateField()), ('data_protocolo', models.DateField()),
('hora_protocolo', models.TimeField()), ('hora_protocolo', models.TimeField()),
('data_timestamp', models.DateTimeField()), ('data_timestamp', models.DateTimeField()),
('tipo_protocolo', models.IntegerField()), ('tipo_protocolo', models.IntegerField(verbose_name='Tipo de Protocolo')),
('tipo_processo', models.IntegerField()), ('tipo_processo', models.IntegerField()),
('txt_interessado', models.CharField(max_length=60, null=True, blank=True)), ('txt_interessado', models.CharField(max_length=60, null=True, verbose_name='Interessado', blank=True)),
('txt_assunto_ementa', models.TextField(null=True, blank=True)), ('txt_assunto_ementa', models.TextField(null=True, blank=True)),
('numero_paginas', models.IntegerField(null=True, blank=True)), ('numero_paginas', models.IntegerField(null=True, verbose_name='N\xfam. P\xe1ginas', blank=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('anulado', models.BooleanField()), ('anulado', models.BooleanField()),
('txt_user_anulacao', models.CharField(max_length=20, null=True, blank=True)), ('txt_user_anulacao', models.CharField(max_length=20, null=True, blank=True)),
('txt_ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), ('txt_ip_anulacao', models.CharField(max_length=15, null=True, blank=True)),
@ -62,54 +70,70 @@ class Migration(migrations.Migration):
('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), ('timestamp_anulacao', models.DateTimeField(null=True, blank=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), ('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)),
], ],
options={
'verbose_name': 'Protocolo',
'verbose_name_plural': 'Protocolos',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='StatusTramitacaoAdministrativo', name='StatusTramitacaoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_status', models.CharField(max_length=10)), ('sigla_status', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao_status', models.CharField(max_length=60)), ('descricao_status', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')),
('fim_tramitacao', models.BooleanField()), ('fim_tramitacao', models.BooleanField()),
('retorno_tramitacao', models.BooleanField()), ('retorno_tramitacao', models.BooleanField()),
], ],
options={
'verbose_name': 'Status de Tramita\xe7\xe3o',
'verbose_name_plural': 'Status de Tramita\xe7\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoDocumentoAdministrativo', name='TipoDocumentoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla_tipo_documento', models.CharField(max_length=5)), ('sigla_tipo_documento', models.CharField(max_length=5, verbose_name='Sigla')),
('descricao_tipo_documento', models.CharField(max_length=50)), ('descricao_tipo_documento', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
], ],
options={
'verbose_name': 'Tipo de Documento Administrativo',
'verbose_name_plural': 'Tipos de Documento Administrativo',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TramitacaoAdministrativo', name='TramitacaoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_tramitacao', models.DateField(null=True, blank=True)), ('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)),
('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_local', models.IntegerField(null=True, verbose_name='Unidade Local', blank=True)),
('data_encaminha', models.DateField(null=True, blank=True)), ('data_encaminha', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)),
('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_dest', models.IntegerField(null=True, verbose_name='Unidade Destino', blank=True)),
('ult_tramitacao', models.BooleanField()), ('ult_tramitacao', models.BooleanField()),
('txt_tramitacao', models.TextField(null=True, blank=True)), ('txt_tramitacao', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)),
('data_fim_prazo', models.DateField(null=True, blank=True)), ('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim do Prazo', blank=True)),
('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')), ('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')),
('status', models.ForeignKey(blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)), ('status', models.ForeignKey(verbose_name='Status', blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)),
], ],
options={
'verbose_name': 'Tramita\xe7\xe3o de Documento Administrativo',
'verbose_name_plural': 'Tramita\xe7\xf5es de Documento Administrativo',
},
), ),
migrations.AddField( migrations.AddField(
model_name='protocolo', model_name='protocolo',
name='tipo_documento', name='tipo_documento',
field=models.ForeignKey(blank=True, to='protocoloadm.TipoDocumentoAdministrativo', null=True), field=models.ForeignKey(verbose_name='Tipo de documento', blank=True, to='protocoloadm.TipoDocumentoAdministrativo', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='protocolo', model_name='protocolo',
name='tipo_materia', name='tipo_materia',
field=models.ForeignKey(blank=True, to='materia.TipoMateriaLegislativa', null=True), field=models.ForeignKey(verbose_name='Tipo Mat\xe9ria', blank=True, to='materia.TipoMateriaLegislativa', null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='documentoadministrativo', model_name='documentoadministrativo',
name='tipo', name='tipo',
field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo'), field=models.ForeignKey(verbose_name='Tipo Documento', to='protocoloadm.TipoDocumentoAdministrativo'),
), ),
migrations.AddField( migrations.AddField(
model_name='documentoacessorioadministrativo', model_name='documentoacessorioadministrativo',
@ -119,6 +143,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='documentoacessorioadministrativo', model_name='documentoacessorioadministrativo',
name='tipo', name='tipo',
field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo'), field=models.ForeignKey(verbose_name='Tipo', to='protocoloadm.TipoDocumentoAdministrativo'),
), ),
] ]

122
sessao/migrations/0001_initial.py

@ -16,13 +16,17 @@ class Migration(migrations.Migration):
name='ExpedienteMateria', name='ExpedienteMateria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_ordem', models.DateField()), ('data_ordem', models.DateField(verbose_name='Data da Sess\xe3o')),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Ementa', blank=True)),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField(verbose_name='N\xba Ordem')),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(null=True, blank=True)),
('tipo_votacao', models.IntegerField()), ('tipo_votacao', models.IntegerField(verbose_name='Tipo de vota\xe7\xe3o')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Mat\xe9ria do Expediente',
'verbose_name_plural': 'Mat\xe9rias do Expediente',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='ExpedienteSessaoPlenaria', name='ExpedienteSessaoPlenaria',
@ -30,6 +34,10 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('txt_expediente', models.TextField(null=True, blank=True)), ('txt_expediente', models.TextField(null=True, blank=True)),
], ],
options={
'verbose_name': 'Expediente de Sess\xe3o Plenaria',
'verbose_name_plural': 'Expedientes de Sess\xe3o Plenaria',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='MesaSessaoPlenaria', name='MesaSessaoPlenaria',
@ -39,36 +47,52 @@ class Migration(migrations.Migration):
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
('sessao_leg', models.ForeignKey(to='parlamentares.SessaoLegislativa')), ('sessao_leg', models.ForeignKey(to='parlamentares.SessaoLegislativa')),
], ],
options={
'verbose_name': 'Mesa de Sess\xe3o Plenaria',
'verbose_name_plural': 'Mesas de Sess\xe3o Plenaria',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='Oradores', name='Oradores',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')),
('url_discurso', models.CharField(max_length=150, null=True, blank=True)), ('url_discurso', models.CharField(max_length=150, null=True, verbose_name='URL V\xeddeo', blank=True)),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')),
], ],
options={
'verbose_name': 'Orador das Explica\xe7\xf5es Pessoais',
'verbose_name_plural': 'Oradores das Explica\xe7\xf5es Pessoais',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='OradoresExpediente', name='OradoresExpediente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')),
('url_discurso', models.CharField(max_length=150, null=True, blank=True)), ('url_discurso', models.CharField(max_length=150, null=True, verbose_name='URL V\xeddeo', blank=True)),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')),
], ],
options={
'verbose_name': 'Orador do Expediente',
'verbose_name_plural': 'Oradores do Expediente',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='OrdemDia', name='OrdemDia',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('data_ordem', models.DateField()), ('data_ordem', models.DateField(verbose_name='Data da Sess\xe3o')),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Ementa', blank=True)),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField(verbose_name='N\xba Ordem')),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(null=True, blank=True)),
('tipo_votacao', models.IntegerField()), ('tipo_votacao', models.IntegerField(verbose_name='Tipo de vota\xe7\xe3o')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={
'verbose_name': 'Mat\xe9ria da Ordem do Dia',
'verbose_name_plural': 'Mat\xe9rias da Ordem do Dia',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='OrdemDiaPresenca', name='OrdemDiaPresenca',
@ -77,18 +101,26 @@ class Migration(migrations.Migration):
('data_ordem', models.DateField()), ('data_ordem', models.DateField()),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
], ],
options={
'verbose_name': 'Presen\xe7a da Ordem do Dia',
'verbose_name_plural': 'Presen\xe7as da Ordem do Dia',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='RegistroVotacao', name='RegistroVotacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero_votos_sim', models.IntegerField()), ('numero_votos_sim', models.IntegerField(verbose_name='Sim:')),
('numero_votos_nao', models.IntegerField()), ('numero_votos_nao', models.IntegerField(verbose_name='N\xe3o:')),
('numero_abstencao', models.IntegerField()), ('numero_abstencao', models.IntegerField(verbose_name='Absten\xe7\xf5es:')),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(null=True, verbose_name='Observa\xe7\xf5es', blank=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('ordem', models.ForeignKey(to='sessao.OrdemDia')), ('ordem', models.ForeignKey(to='sessao.OrdemDia')),
], ],
options={
'verbose_name': 'Vota\xe7\xe3o',
'verbose_name_plural': 'Vota\xe7\xf5es',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='RegistroVotacaoParlamentar', name='RegistroVotacaoParlamentar',
@ -98,6 +130,10 @@ class Migration(migrations.Migration):
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
('votacao', models.ForeignKey(to='sessao.RegistroVotacao')), ('votacao', models.ForeignKey(to='sessao.RegistroVotacao')),
], ],
options={
'verbose_name': 'Registro de Vota\xe7\xe3o de Parlamentar',
'verbose_name_plural': 'Registros de Vota\xe7\xf5es de Parlamentares',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='SessaoPlenaria', name='SessaoPlenaria',
@ -105,17 +141,21 @@ class Migration(migrations.Migration):
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('cod_andamento_sessao', models.IntegerField(null=True, blank=True)), ('cod_andamento_sessao', models.IntegerField(null=True, blank=True)),
('tipo_expediente', models.CharField(max_length=10)), ('tipo_expediente', models.CharField(max_length=10)),
('data_inicio_sessao', models.DateField()), ('data_inicio_sessao', models.DateField(verbose_name='Abertura')),
('dia_sessao', models.CharField(max_length=15)), ('dia_sessao', models.CharField(max_length=15)),
('hr_inicio_sessao', models.CharField(max_length=5)), ('hr_inicio_sessao', models.CharField(max_length=5, verbose_name='Hor\xe1rio')),
('hr_fim_sessao', models.CharField(max_length=5, null=True, blank=True)), ('hr_fim_sessao', models.CharField(max_length=5, null=True, verbose_name='Hor\xe1rio', blank=True)),
('numero_sessao_plen', models.IntegerField()), ('numero_sessao_plen', models.IntegerField(verbose_name='N\xfamero')),
('data_fim_sessao', models.DateField(null=True, blank=True)), ('data_fim_sessao', models.DateField(null=True, verbose_name='Encerramento', blank=True)),
('url_audio', models.CharField(max_length=150, null=True, blank=True)), ('url_audio', models.CharField(max_length=150, null=True, verbose_name='URL Arquivo \xc1udio (Formatos MP3 / AAC)', blank=True)),
('url_video', models.CharField(max_length=150, null=True, blank=True)), ('url_video', models.CharField(max_length=150, null=True, verbose_name='URL Arquivo V\xeddeo (Formatos MP4 / FLV / WebM)', blank=True)),
('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura')),
('sessao_leg', models.ForeignKey(to='parlamentares.SessaoLegislativa')), ('sessao_leg', models.ForeignKey(verbose_name='Sess\xe3o Legislativa', to='parlamentares.SessaoLegislativa')),
], ],
options={
'verbose_name': 'Sess\xe3o Plen\xe1ria',
'verbose_name_plural': 'Sess\xf5es Plen\xe1rias',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='SessaoPlenariaPresenca', name='SessaoPlenariaPresenca',
@ -125,38 +165,54 @@ class Migration(migrations.Migration):
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
('sessao_plen', models.ForeignKey(to='sessao.SessaoPlenaria')), ('sessao_plen', models.ForeignKey(to='sessao.SessaoPlenaria')),
], ],
options={
'verbose_name': 'Presen\xe7a em Sess\xe3o Plen\xe1ria',
'verbose_name_plural': 'Presen\xe7as em Sess\xf5es Plen\xe1rias',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoExpediente', name='TipoExpediente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_expediente', models.CharField(max_length=100)), ('nome_expediente', models.CharField(max_length=100, verbose_name='Tipo')),
], ],
options={
'verbose_name': 'Tipo de Expediente',
'verbose_name_plural': 'Tipos de Expediente',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoResultadoVotacao', name='TipoResultadoVotacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_resultado', models.CharField(max_length=100)), ('nome_resultado', models.CharField(max_length=100, verbose_name='Tipo')),
], ],
options={
'verbose_name': 'Tipo de Resultado de Vota\xe7\xe3o',
'verbose_name_plural': 'Tipos de Resultado de Vota\xe7\xe3o',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoSessaoPlenaria', name='TipoSessaoPlenaria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome_sessao', models.CharField(max_length=30)), ('nome_sessao', models.CharField(max_length=30, verbose_name='Tipo')),
('numero_minimo', models.IntegerField()), ('numero_minimo', models.IntegerField(verbose_name='Qu\xf3rum m\xednimo')),
], ],
options={
'verbose_name': 'Tipo de Sess\xe3o Plen\xe1ria',
'verbose_name_plural': 'Tipos de Sess\xe3o Plen\xe1ria',
},
), ),
migrations.AddField( migrations.AddField(
model_name='sessaoplenaria', model_name='sessaoplenaria',
name='tipo', name='tipo',
field=models.ForeignKey(to='sessao.TipoSessaoPlenaria'), field=models.ForeignKey(verbose_name='Tipo', to='sessao.TipoSessaoPlenaria'),
), ),
migrations.AddField( migrations.AddField(
model_name='registrovotacao', model_name='registrovotacao',
name='tipo_resultado_votacao', name='tipo_resultado_votacao',
field=models.ForeignKey(to='sessao.TipoResultadoVotacao'), field=models.ForeignKey(verbose_name='Resultado da Vota\xe7\xe3o', to='sessao.TipoResultadoVotacao'),
), ),
migrations.AddField( migrations.AddField(
model_name='ordemdiapresenca', model_name='ordemdiapresenca',

Loading…
Cancel
Save