Browse Source

Adição de URLField em compilação, lexml, e sessão

pull/242/head
Edward Ribeiro 9 years ago
parent
commit
0c34b85b10
  1. 25
      compilacao/migrations/0044_auto_20160307_0918.py
  2. 4
      compilacao/models.py
  3. 25
      lexml/migrations/0004_auto_20160307_0918.py
  4. 4
      lexml/models.py
  5. 35
      sessao/migrations/0015_auto_20160307_0918.py
  6. 6
      sessao/models.py

25
compilacao/migrations/0044_auto_20160307_0918.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-07 12:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('compilacao', '0043_auto_20160110_1733'),
]
operations = [
migrations.AlterField(
model_name='nota',
name='url_externa',
field=models.URLField(blank=True, max_length=1024, verbose_name='Url externa'),
),
migrations.AlterField(
model_name='publicacao',
name='url_externa',
field=models.URLField(blank=True, max_length=1024, verbose_name='Link para Versão Eletrônica'),
),
]

4
compilacao/models.py

@ -459,7 +459,7 @@ class Publicacao(TimestampedMixin):
edicao = models.PositiveIntegerField(
blank=True, null=True, verbose_name=_('Edição'))
url_externa = models.CharField(
url_externa = models.URLField(
max_length=1024,
blank=True,
verbose_name=_('Link para Versão Eletrônica'))
@ -1169,7 +1169,7 @@ class Nota(TimestampedMixin):
default='',
blank=True)
texto = models.TextField(verbose_name=_('Texto'))
url_externa = models.CharField(
url_externa = models.URLField(
max_length=1024,
blank=True,
verbose_name=_('Url externa'))

25
lexml/migrations/0004_auto_20160307_0918.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-07 12:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lexml', '0003_auto_20160216_1015'),
]
operations = [
migrations.AlterField(
model_name='lexmlprovedor',
name='email_responsavel',
field=models.EmailField(blank=True, max_length=50, verbose_name='E-mail do responsável'),
),
migrations.AlterField(
model_name='lexmlpublicador',
name='email_responsavel',
field=models.EmailField(blank=True, max_length=50, verbose_name='E-mail do responsável'),
),
]

4
lexml/models.py

@ -6,7 +6,7 @@ class LexmlProvedor(models.Model): # LexmlRegistroProvedor
id_provedor = models.PositiveIntegerField(verbose_name=_('Id do provedor'))
nome = models.CharField(max_length=255, verbose_name=_('Nome do provedor'))
sigla = models.CharField(max_length=15)
email_responsavel = models.CharField(
email_responsavel = models.EmailField(
max_length=50,
blank=True,
verbose_name=_('E-mail do responsável'))
@ -34,7 +34,7 @@ class LexmlPublicador(models.Model):
verbose_name=_('Id do publicador'))
nome = models.CharField(
max_length=255, verbose_name=_('Nome do publicador'))
email_responsavel = models.CharField(
email_responsavel = models.EmailField(
max_length=50,
blank=True,
verbose_name=_('E-mail do responsável'))

35
sessao/migrations/0015_auto_20160307_0918.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-07 12:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sessao', '0014_auto_20160223_0813'),
]
operations = [
migrations.AlterField(
model_name='orador',
name='url_discurso',
field=models.URLField(blank=True, max_length=150, verbose_name='URL Vídeo'),
),
migrations.AlterField(
model_name='oradorexpediente',
name='url_discurso',
field=models.URLField(blank=True, max_length=150, verbose_name='URL Vídeo'),
),
migrations.AlterField(
model_name='sessaoplenaria',
name='url_audio',
field=models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Áudio (Formatos MP3 / AAC)'),
),
migrations.AlterField(
model_name='sessaoplenaria',
name='url_video',
field=models.URLField(blank=True, max_length=150, verbose_name='URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)'),
),
]

6
sessao/models.py

@ -53,10 +53,10 @@ class SessaoPlenaria(models.Model):
numero = models.PositiveIntegerField(verbose_name=_('Número'))
data_fim = models.DateField(
blank=True, null=True, verbose_name=_('Encerramento'))
url_audio = models.CharField(
url_audio = models.URLField(
max_length=150, blank=True,
verbose_name=_('URL Arquivo Áudio (Formatos MP3 / AAC)'))
url_video = models.CharField(
url_video = models.URLField(
max_length=150, blank=True,
verbose_name=_('URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)'))
upload_pauta = models.FileField(
@ -171,7 +171,7 @@ class AbstractOrador(models.Model): # Oradores
parlamentar = models.ForeignKey(Parlamentar, verbose_name=_('Parlamentar'))
numero_ordem = models.PositiveIntegerField(
verbose_name=_('Ordem de pronunciamento'))
url_discurso = models.CharField(
url_discurso = models.URLField(
max_length=150, blank=True, verbose_name=_('URL Vídeo'))
class Meta:

Loading…
Cancel
Save