mirror of https://github.com/interlegis/sapl.git
Edward
8 years ago
committed by
GitHub
8 changed files with 101 additions and 9 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.11 on 2017-05-10 15:49 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('norma', '0002_auto_20170403_1505'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterModelOptions( |
|||
name='assuntonorma', |
|||
options={'verbose_name': 'Assunto de Norma Jurídica', 'verbose_name_plural': 'Assuntos de Normas Jurídicas'}, |
|||
), |
|||
] |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.9.11 on 2017-05-10 15:49 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('sessao', '0001_initial'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='sessaoplenaria', |
|||
name='interativa', |
|||
field=models.NullBooleanField(choices=[(True, 'Sim'), (False, 'Não')], verbose_name='Sessão interativa'), |
|||
), |
|||
] |
@ -0,0 +1,17 @@ |
|||
from rest_framework import serializers |
|||
|
|||
from .models import SessaoPlenaria |
|||
|
|||
class SessaoPlenariaSerializer(serializers.Serializer): |
|||
class Meta: |
|||
model = SessaoPlenaria |
|||
fields = ('tipo', |
|||
'sessao_legislativa', |
|||
'legislatura', |
|||
'data_inicio', |
|||
'hora_inicio', |
|||
'hora_fim', |
|||
'url_video', |
|||
'iniciada', |
|||
'finalizada' |
|||
) |
Loading…
Reference in new issue