mirror of https://github.com/interlegis/sapl.git
11 changed files with 44 additions and 143 deletions
@ -1,34 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.20 on 2019-05-31 11:48 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
import sapl.parlamentares.models |
|
||||
import sapl.utils |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('parlamentares', '0029_auto_20190517_1531'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name='HistoricoPartido', |
|
||||
fields=[ |
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||
('sigla', models.CharField(max_length=9, verbose_name='Sigla')), |
|
||||
('nome', models.CharField(max_length=50, verbose_name='Nome')), |
|
||||
('inicio_historico', models.DateField(verbose_name='Data Alteração')), |
|
||||
('fim_historico', models.DateField(verbose_name='Data Alteração')), |
|
||||
('logo_partido', models.ImageField(blank=True, null=True, upload_to=sapl.parlamentares.models.logo_upload_path, validators=[sapl.utils.restringe_tipos_de_arquivo_img], verbose_name='Logo Partido')), |
|
||||
('partido', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='parlamentares.Partido')), |
|
||||
], |
|
||||
), |
|
||||
migrations.AlterModelTable( |
|
||||
name='bloco', |
|
||||
table=None, |
|
||||
), |
|
||||
] |
|
||||
@ -1,15 +1,14 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||
# Generated by Django 1.11.20 on 2019-05-31 14:09 |
# Generated by Django 1.11.21 on 2019-06-13 14:33 |
||||
from __future__ import unicode_literals |
from __future__ import unicode_literals |
||||
|
|
||||
from django.db import migrations, models |
from django.db import migrations |
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
class Migration(migrations.Migration): |
||||
|
|
||||
dependencies = [ |
dependencies = [ |
||||
('parlamentares', '0030_auto_20190531_0848'), |
('parlamentares', '0029_auto_20190517_1531'), |
||||
] |
] |
||||
|
|
||||
operations = [ |
operations = [ |
||||
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.29 on 2020-04-07 17:06 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('parlamentares', '0030_auto_20190613_1133'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='partido', |
||||
|
name='sigla', |
||||
|
field=models.CharField(max_length=20, verbose_name='Sigla'), |
||||
|
), |
||||
|
] |
||||
@ -1,32 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.20 on 2019-08-01 15:35 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('parlamentares', '0032_auto_20190619_1509'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name='AfastamentoParlamentar', |
|
||||
fields=[ |
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||
('data_inicio', models.DateField(null=True, verbose_name='Início do Afastamento')), |
|
||||
('data_fim', models.DateField(blank=True, null=True, verbose_name='Fim do Afastamento')), |
|
||||
('observacao', models.TextField(blank=True, verbose_name='Observação')), |
|
||||
('mandato', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Mandato', verbose_name='Mandato')), |
|
||||
('parlamentar', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Parlamentar')), |
|
||||
('tipo_afastamento', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='parlamentares.TipoAfastamento', verbose_name='Tipo de Afastamento')), |
|
||||
], |
|
||||
options={ |
|
||||
'verbose_name': 'Afastamento', |
|
||||
'verbose_name_plural': 'Afastamentos', |
|
||||
}, |
|
||||
), |
|
||||
] |
|
||||
@ -1,36 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.20 on 2019-07-12 14:32 |
|
||||
from __future__ import unicode_literals |
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('parlamentares', '0032_auto_20190619_1509'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.CreateModel( |
|
||||
name='CargoBloco', |
|
||||
fields=[ |
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||
('nome', models.CharField(max_length=80, verbose_name='Nome do Cargo')), |
|
||||
('unico', models.BooleanField(choices=[(True, 'Sim'), (False, 'Não')], default=True, verbose_name='Cargo Único')), |
|
||||
('descricao', models.TextField(blank=True, verbose_name='Descrição')), |
|
||||
], |
|
||||
options={'ordering': ['nome'], 'verbose_name': 'Cargo de Bloco', 'verbose_name_plural': 'Cargos de Bloco'}, |
|
||||
), |
|
||||
migrations.CreateModel( |
|
||||
name='CargoBlocoPartido', |
|
||||
fields=[ |
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|
||||
('data_inicio', models.DateField(verbose_name='Data Início')), |
|
||||
('data_fim', models.DateField(blank=True, null=True, verbose_name='Data Fim')), |
|
||||
('bloco', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='parlamentares.Bloco')), |
|
||||
('cargo', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='parlamentares.CargoBloco')), |
|
||||
('parlamentar', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='parlamentares.Parlamentar')), |
|
||||
], |
|
||||
options={'ordering': ['data_inicio'], 'verbose_name': 'Vinculo bloco parlamentar', 'verbose_name_plural': 'Vinculos bloco parlamentar'}, |
|
||||
), |
|
||||
] |
|
||||
@ -1,21 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
# Generated by Django 1.11.20 on 2019-08-01 17:08 |
|
||||
from __future__ import unicode_literals |
|
||||
|
|
||||
from django.db import migrations, models |
|
||||
import django.db.models.deletion |
|
||||
|
|
||||
|
|
||||
class Migration(migrations.Migration): |
|
||||
|
|
||||
dependencies = [ |
|
||||
('parlamentares', '0033_afastamentoparlamentar'), |
|
||||
] |
|
||||
|
|
||||
operations = [ |
|
||||
migrations.AlterField( |
|
||||
model_name='mandato', |
|
||||
name='tipo_afastamento', |
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='parlamentares.TipoAfastamento', verbose_name='Tipo de Afastamento'), |
|
||||
), |
|
||||
] |
|
||||
Loading…
Reference in new issue