From c068aa10ca0815ad9ed71e048169597390348d90 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 4 Oct 2016 09:28:47 -0300 Subject: [PATCH] Fix #682 --- .../migrations/0051_auto_20161004_0927.py | 19 ++++++++++++++ .../migrations/0028_auto_20161004_0927.py | 25 +++++++++++++++++++ sapl/sessao/models.py | 4 +-- 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 sapl/materia/migrations/0051_auto_20161004_0927.py create mode 100644 sapl/sessao/migrations/0028_auto_20161004_0927.py diff --git a/sapl/materia/migrations/0051_auto_20161004_0927.py b/sapl/materia/migrations/0051_auto_20161004_0927.py new file mode 100644 index 000000000..db4e3349e --- /dev/null +++ b/sapl/materia/migrations/0051_auto_20161004_0927.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-10-04 12:27 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0050_auto_20161003_0417'), + ] + + operations = [ + migrations.AlterModelOptions( + name='tramitacao', + options={'ordering': ('-data_tramitacao',), 'verbose_name': 'Tramitação', 'verbose_name_plural': 'Tramitações'}, + ), + ] diff --git a/sapl/sessao/migrations/0028_auto_20161004_0927.py b/sapl/sessao/migrations/0028_auto_20161004_0927.py new file mode 100644 index 000000000..cd8f78f2f --- /dev/null +++ b/sapl/sessao/migrations/0028_auto_20161004_0927.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.7 on 2016-10-04 12:27 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0027_auto_20161003_0417'), + ] + + operations = [ + migrations.AlterField( + model_name='orador', + name='url_discurso', + field=models.CharField(blank=True, max_length=150, verbose_name='URL Vídeo ou Observação'), + ), + migrations.AlterField( + model_name='oradorexpediente', + name='url_discurso', + field=models.CharField(blank=True, max_length=150, verbose_name='URL Vídeo ou Observação'), + ), + ] diff --git a/sapl/sessao/models.py b/sapl/sessao/models.py index 86ce4c2e2..9979d1c2e 100644 --- a/sapl/sessao/models.py +++ b/sapl/sessao/models.py @@ -213,8 +213,8 @@ class AbstractOrador(models.Model): # Oradores parlamentar = models.ForeignKey(Parlamentar, verbose_name=_('Parlamentar')) numero_ordem = models.PositiveIntegerField( verbose_name=_('Ordem de pronunciamento')) - url_discurso = models.URLField( - max_length=150, blank=True, verbose_name=_('URL Vídeo')) + url_discurso = models.CharField( + max_length=150, blank=True, verbose_name=_('URL Vídeo ou Observação')) class Meta: abstract = True