From 1be5dbeb24ae2bfd21b6f1adc62987b7b7f351b1 Mon Sep 17 00:00:00 2001 From: Cesar Carvalho Date: Wed, 12 Jun 2019 09:43:52 -0300 Subject: [PATCH] Migrations e merge --- .../migrations/0042_merge_20190612_0925.py | 16 ++ sapl/sessao/views.py | 10 +- .../templates/sessao/sessaoplenaria_form.html | 138 +++++++++--------- 3 files changed, 90 insertions(+), 74 deletions(-) create mode 100644 sapl/sessao/migrations/0042_merge_20190612_0925.py diff --git a/sapl/sessao/migrations/0042_merge_20190612_0925.py b/sapl/sessao/migrations/0042_merge_20190612_0925.py new file mode 100644 index 000000000..3ca598ee3 --- /dev/null +++ b/sapl/sessao/migrations/0042_merge_20190612_0925.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.20 on 2019-06-12 12:25 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('sessao', '0041_auto_20190610_1300'), + ('sessao', '0041_sessaoplenaria_tema_solene'), + ] + + operations = [ + ] diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index d6cb25b26..74715707a 100755 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -883,11 +883,7 @@ class SessaoCrud(Crud): @property def layout_key(self): - sessao = self.object - tipo_sessao = sessao.tipo - if tipo_sessao.nome == "Solene": - return 'SessaoSolene' - return 'SessaoPlenaria' + return 'SessaoSolene' def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) @@ -907,10 +903,6 @@ class SessaoCrud(Crud): @property def layout_key(self): - # sessao = self.object - # tipo_sessao = sessao.tipo - # if tipo_sessao.nome == "Solene": - # return 'SessaoSolene' return 'SessaoSolene' @property diff --git a/sapl/templates/sessao/sessaoplenaria_form.html b/sapl/templates/sessao/sessaoplenaria_form.html index f4b339107..17148fb6d 100644 --- a/sapl/templates/sessao/sessaoplenaria_form.html +++ b/sapl/templates/sessao/sessaoplenaria_form.html @@ -7,80 +7,88 @@