mirror of https://github.com/interlegis/sapl.git
Browse Source
* Documento acessorio de audiencia publica * inclusão do arquivo subnav.yaml * adicionar documento acessorio funcionando * Fix de erro ao mostrar Documento Acessório * Alteração de forms.py, models.py e views.py de acordo com mudanças solicitadas.pull/2329/head
AndreSouto
6 years ago
committed by
Edward
10 changed files with 211 additions and 8 deletions
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.13 on 2018-10-17 20:27 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import sapl.utils |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('audiencia', '0006_auto_20180808_0856'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='AnexoAudienciaPublica', |
|||
fields=[ |
|||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
|||
('nome', models.CharField(max_length=30, verbose_name='Nome')), |
|||
('arquivo', models.FileField(blank=True, null=True, upload_to=sapl.utils.texto_upload_path, verbose_name='Arquivo')), |
|||
('data', models.DateField(blank=True, null=True, verbose_name='Data')), |
|||
('assunto', models.TextField(blank=True, verbose_name='Assunto')), |
|||
('indexacao', models.TextField(blank=True)), |
|||
('audiencia', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='audiencia.AudienciaPublica')), |
|||
], |
|||
options={ |
|||
'verbose_name': 'Documento Acessório', |
|||
'verbose_name_plural': 'Documentos Acessórios', |
|||
}, |
|||
), |
|||
] |
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.8 on 2018-10-23 13:51 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('audiencia', '0007_anexoaudienciapublica'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='anexoaudienciapublica', |
|||
options={'verbose_name': 'Anexo de Documento Acessório', 'verbose_name_plural': 'Anexo de Documentos Acessórios'}, |
|||
), |
|||
migrations.RemoveField( |
|||
model_name='anexoaudienciapublica', |
|||
name='nome', |
|||
), |
|||
migrations.AlterField( |
|||
model_name='anexoaudienciapublica', |
|||
name='data', |
|||
field=models.DateField(auto_now=True, null=True), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.10.8 on 2018-10-23 13:55 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('audiencia', '0008_auto_20181023_1051'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.RemoveField( |
|||
model_name='anexoaudienciapublica', |
|||
name='indexacao', |
|||
), |
|||
] |
@ -1,10 +1,11 @@ |
|||
from django.conf.urls import include, url |
|||
from sapl.audiencia.views import (index, AudienciaCrud) |
|||
from sapl.audiencia.views import (index, AudienciaCrud,AnexoAudienciaPublicaCrud) |
|||
|
|||
from .apps import AppConfig |
|||
|
|||
app_name = AppConfig.name |
|||
|
|||
urlpatterns = [ |
|||
url(r'^audiencia/', include(AudienciaCrud.get_urls())), |
|||
url(r'^audiencia/', include(AudienciaCrud.get_urls() + |
|||
AnexoAudienciaPublicaCrud.get_urls())), |
|||
] |
@ -0,0 +1,5 @@ |
|||
{% load i18n common_tags %} |
|||
- title: {% trans 'Início' %} |
|||
url: audienciapublica_detail |
|||
- title: {% trans 'Documento Acessório' %} |
|||
url: anexoaudienciapublica_list |
Loading…
Reference in new issue