mirror of https://github.com/interlegis/sapl.git
Browse Source
* Migrando model de bloco de sessao para parlamentar * Migrando views e forms de bancada para app de parlamentarespull/2769/head
Ulysses Lara
6 years ago
committed by
Edward
16 changed files with 186 additions and 103 deletions
@ -0,0 +1,37 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.20 on 2019-04-30 11:28 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('parlamentares', '0025_auto_20180924_1724'), |
||||
|
('sessao', '0039_auto_20190430_0825') |
||||
|
] |
||||
|
|
||||
|
state_operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='Bloco', |
||||
|
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 Bloco')), |
||||
|
('data_criacao', models.DateField(null=True, verbose_name='Data Criação')), |
||||
|
('data_extincao', models.DateField(blank=True, null=True, verbose_name='Data Dissolução')), |
||||
|
('descricao', models.TextField(blank=True, verbose_name='Descrição')), |
||||
|
('partidos', models.ManyToManyField(blank=True, to='parlamentares.Partido', verbose_name='Partidos')), |
||||
|
], |
||||
|
options={ |
||||
|
'db_table': 'parlamentares_bloco', |
||||
|
'verbose_name': 'Bloco Parlamentar', |
||||
|
'verbose_name_plural': 'Blocos Parlamentares', |
||||
|
}, |
||||
|
bases=(models.Model,), |
||||
|
), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState(state_operations=state_operations) |
||||
|
] |
@ -0,0 +1,19 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.20 on 2019-04-30 11:39 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('parlamentares', '0026_bloco'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterModelTable( |
||||
|
name='bloco', |
||||
|
table=None, |
||||
|
), |
||||
|
] |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.11.20 on 2019-04-30 11:25 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('sessao', '0038_merge_20190415_1800'), |
||||
|
] |
||||
|
|
||||
|
database_operations = [migrations.AlterModelTable('Bloco', 'parlamentares_bloco')] |
||||
|
|
||||
|
state_operations = [migrations.DeleteModel('Bloco')] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
database_operations=database_operations, |
||||
|
state_operations=state_operations) |
||||
|
] |
Loading…
Reference in new issue