mirror of https://github.com/interlegis/sapl.git
Browse Source
* Criação da tela de Bancada * Criação da tela de Cargo de Bancada * Fix qa * Ordena listagem por legislatura * Ordena legislatura no model * Impede que data de extinção seja menor que a de criaçãopull/480/head
Eduardo Edson Batista Cordeiro Alves
9 years ago
committed by
Edward
13 changed files with 232 additions and 13 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-18 15:04 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0018_auto_20160510_0943'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='legislatura', |
|||
options={'ordering': ['-data_inicio'], 'verbose_name': 'Legislatura', 'verbose_name_plural': 'Legislaturas'}, |
|||
), |
|||
] |
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-17 17:26 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('parlamentares', '0018_auto_20160510_0943'), |
|||
('sessao', '0016_auto_20160404_1409'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Bancada', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('nome', models.CharField(max_length=80, verbose_name='Nome da Bancada, Bloco, Frente ou Grupo')), |
|||
('data_criacao', models.DateField(blank=True, verbose_name='Data Criação')), |
|||
('data_extincao', models.DateField(blank=True, verbose_name='Data Extinção')), |
|||
('descricao', models.TextField(blank=True, verbose_name='Descrição')), |
|||
('legislatura', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Legislatura', verbose_name='Legislatura')), |
|||
('partido', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Partido', verbose_name='Partido')), |
|||
], |
|||
options={ |
|||
'verbose_name_plural': 'Bancadas', |
|||
'verbose_name': 'Bancada', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,31 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-17 17:35 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0017_bancada'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='bancada', |
|||
name='data_criacao', |
|||
field=models.DateField(blank=True, null=True, verbose_name='Data Criação'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='bancada', |
|||
name='data_extincao', |
|||
field=models.DateField(blank=True, null=True, verbose_name='Data Extinção'), |
|||
), |
|||
migrations.AlterField( |
|||
model_name='bancada', |
|||
name='partido', |
|||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='parlamentares.Partido', verbose_name='Partido'), |
|||
), |
|||
] |
@ -0,0 +1,27 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-17 17:42 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0018_auto_20160517_1435'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='CargoBancada', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('nome_cargo', models.CharField(max_length=80, verbose_name='Cargo de Bancada')), |
|||
('cargo_unico', models.NullBooleanField(choices=[(True, 'Sim'), (False, 'Não')], verbose_name='Cargo Único')), |
|||
], |
|||
options={ |
|||
'verbose_name_plural': 'Cargos de Bancada', |
|||
'verbose_name': 'Cargo de Bancada', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.5 on 2016-05-17 17:50 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0019_cargobancada'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='cargobancada', |
|||
name='cargo_unico', |
|||
field=models.CharField(choices=[(True, 'Sim'), (False, 'Não')], default=False, max_length=10, verbose_name='Cargo Único'), |
|||
), |
|||
] |
Loading…
Reference in new issue