Browse Source

Fix #1766 (#1768)

pull/1774/head
Mariana Mendes 7 years ago
committed by Edward
parent
commit
094ffca1bd
  1. 2
      sapl/sessao/legacy.yaml
  2. 26
      sapl/sessao/migrations/0017_auto_20180316_0731.py
  3. 5
      sapl/sessao/models.py
  4. 1
      sapl/templates/sessao/layouts.yaml

2
sapl/sessao/legacy.yaml

@ -44,6 +44,8 @@ AbstractOrador:
parlamentar: cod_parlamentar
sessao_plenaria: cod_sessao_plen
url_discurso: url_discurso
upload_anexo: anexo
Orador (Oradores): {}

26
sapl/sessao/migrations/0017_auto_20180316_0731.py

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-03-16 10:31
from __future__ import unicode_literals
from django.db import migrations, models
import sapl.sessao.models
class Migration(migrations.Migration):
dependencies = [
('sessao', '0016_auto_20180131_1708'),
]
operations = [
migrations.AddField(
model_name='orador',
name='upload_anexo',
field=models.FileField(blank=True, null=True, upload_to=sapl.sessao.models.anexo_upload_path, verbose_name='Anexo do Orador'),
),
migrations.AddField(
model_name='oradorexpediente',
name='upload_anexo',
field=models.FileField(blank=True, null=True, upload_to=sapl.sessao.models.anexo_upload_path, verbose_name='Anexo do Orador'),
),
]

5
sapl/sessao/models.py

@ -320,6 +320,11 @@ class AbstractOrador(models.Model): # Oradores
max_length=150, blank=True, verbose_name=_('URL Vídeo'))
observacao = models.CharField(
max_length=150, blank=True, verbose_name=_('Observação'))
upload_anexo = models.FileField(
blank=True,
null=True,
upload_to=anexo_upload_path,
verbose_name=_('Anexo do Orador'))
class Meta:
abstract = True

1
sapl/templates/sessao/layouts.yaml

@ -36,6 +36,7 @@ OradorExpediente:
{% trans 'Orador do Expediente' %}:
- numero_ordem parlamentar
- url_discurso observacao
- upload_anexo
ExpedienteMateria:
{% trans 'Matéria do Expediente' %}:

Loading…
Cancel
Save