mirror of https://github.com/interlegis/sapl.git
Browse Source
* [WIP] initial commit * [WIP] adiciona tipo retirada de pauta * [WIP] * Fix migrations conflicts * [WIP] * [WIP] form in progress * form on the away * form working * form update bugging, form create and view ok * Retirada de pauta quase completo * Edit funcionando * fix migration conflictspull/2399/head
Victor Fabre
6 years ago
committed by
Edward
14 changed files with 351 additions and 19 deletions
@ -0,0 +1,50 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.8 on 2018-10-31 12:02 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('materia', '0032_auto_20181022_1743'), |
||||
|
('parlamentares', '0025_auto_20180924_1724'), |
||||
|
('sessao', '0029_auto_20181024_0952'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='RetiradaPauta', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('observacao', models.TextField(blank=True, verbose_name='Observações')), |
||||
|
('expediente', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.ExpedienteMateria')), |
||||
|
('materia', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='materia.MateriaLegislativa')), |
||||
|
('ordem', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.OrdemDia')), |
||||
|
('parlamentar', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='parlamentares.Parlamentar', verbose_name='Requerente')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name_plural': 'Retirada de Pauta', |
||||
|
'verbose_name': 'Retirada de Pauta', |
||||
|
}, |
||||
|
), |
||||
|
migrations.CreateModel( |
||||
|
name='TipoRetiradaPauta', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('descricao', models.CharField(max_length=150, verbose_name='Descrição')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name_plural': 'Tipos de Retirada de Pauta', |
||||
|
'verbose_name': 'Tipo de Retidara de Pauta', |
||||
|
'ordering': ['descricao'], |
||||
|
}, |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='retiradapauta', |
||||
|
name='tipo_de_retirada', |
||||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='sessao.TipoRetiradaPauta', verbose_name='Motivo de Retirada de Pauta'), |
||||
|
), |
||||
|
] |
@ -0,0 +1,27 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.8 on 2018-11-13 13:49 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
import django.utils.timezone |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('sessao', '0028_auto_20181031_0902'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='retiradapauta', |
||||
|
name='data', |
||||
|
field=models.DateField(default=django.utils.timezone.now, verbose_name='Data'), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='retiradapauta', |
||||
|
name='sessao_plenaria', |
||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sessao.SessaoPlenaria', verbose_name='Sessão Plenária'), |
||||
|
), |
||||
|
] |
@ -0,0 +1,21 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# Generated by Django 1.10.8 on 2018-11-16 20:49 |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('sessao', '0030_auto_20181113_1149'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='retiradapauta', |
||||
|
name='materia', |
||||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='materia.MateriaLegislativa', verbose_name='Matéria'), |
||||
|
), |
||||
|
] |
@ -0,0 +1,6 @@ |
|||||
|
{% extends "crud/form.html" %} |
||||
|
{% load i18n %} |
||||
|
{% load crispy_forms_tags %} |
||||
|
{% block detail_content %} |
||||
|
{% crispy form %} |
||||
|
{% endblock detail_content %} |
Loading…
Reference in new issue