From ec4de358f8aab0513672aba0324ad9c0f9f648d4 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 18 Oct 2017 14:51:17 -0200 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20desabilita=20possibilidade=20de=20vi?= =?UTF-8?q?sualizar=20painel=20por=20usu=C3=A1rio=20an=C3=B4nimo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/base/forms.py | 2 +- .../0010_remove_appconfig_painel_aberto.py | 19 +++++++++++++++++++ sapl/base/models.py | 7 ++++--- sapl/templates/base/layouts.yaml | 2 +- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 sapl/base/migrations/0010_remove_appconfig_painel_aberto.py diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 1c47b2877..6043c6c37 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -652,7 +652,7 @@ class ConfiguracoesAppForm(ModelForm): model = AppConfig fields = ['documentos_administrativos', 'sequencia_numeracao', - 'painel_aberto', + #'painel_aberto', # TODO: a ser implementado na versão 3.2 'texto_articulado_proposicao', 'texto_articulado_materia', 'texto_articulado_norma', diff --git a/sapl/base/migrations/0010_remove_appconfig_painel_aberto.py b/sapl/base/migrations/0010_remove_appconfig_painel_aberto.py new file mode 100644 index 000000000..cfe5f5c43 --- /dev/null +++ b/sapl/base/migrations/0010_remove_appconfig_painel_aberto.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.11 on 2017-10-18 16:50 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('base', '0009_appconfig_mostrar_brasao_painel'), + ] + + operations = [ + migrations.RemoveField( + model_name='appconfig', + name='painel_aberto', + ), + ] diff --git a/sapl/base/models.py b/sapl/base/models.py index 03278a5af..29c0fa1cc 100644 --- a/sapl/base/models.py +++ b/sapl/base/models.py @@ -122,9 +122,10 @@ class AppConfig(models.Model): verbose_name=_('Sequência de numeração'), choices=SEQUENCIA_NUMERACAO, default='A') - painel_aberto = models.BooleanField( - verbose_name=_('Painel aberto para usuário anônimo'), - choices=YES_NO_CHOICES, default=False) + # TODO: a ser implementado na versão 3.2 + # painel_aberto = models.BooleanField( + # verbose_name=_('Painel aberto para usuário anônimo'), + # choices=YES_NO_CHOICES, default=False) texto_articulado_proposicao = models.BooleanField( verbose_name=_('Usar Textos Articulados para Proposições'), diff --git a/sapl/templates/base/layouts.yaml b/sapl/templates/base/layouts.yaml index cef9615d6..0b4b07b27 100644 --- a/sapl/templates/base/layouts.yaml +++ b/sapl/templates/base/layouts.yaml @@ -12,7 +12,7 @@ CasaLegislativa: AppConfig: {% trans 'Configurações da Aplicação' %}: - - documentos_administrativos painel_aberto + - documentos_administrativos {% trans 'Proposições e Protocolo' %}: - sequencia_numeracao proposicao_incorporacao_obrigatoria