diff --git a/sapl/base/views.py b/sapl/base/views.py index a9f62bee2..ebfd0f573 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -24,6 +24,7 @@ from sapl.sessao.models import (PresencaOrdemDia, SessaoPlenaria, SessaoPlenariaPresenca) from sapl.utils import (parlamentares_ativos, sapl_logger, show_results_filter_set) + from .forms import (CasaLegislativaForm, ConfiguracoesAppForm, RelatorioAtasFilterSet, RelatorioHistoricoTramitacaoFilterSet, diff --git a/sapl/crud/base.py b/sapl/crud/base.py index 05c2b03a9..836af8925 100644 --- a/sapl/crud/base.py +++ b/sapl/crud/base.py @@ -938,16 +938,6 @@ class CrudAux(Crud): class BaseMixin(Crud.BaseMixin): subnav_template_name = None - def __init__(self, **kwargs): - super().__init__(**kwargs) - """ - Mantem as permissões individuais geradas pelo Crud através do - Modelo e adiciona a obrigatoriedade de permissão para view - tabelas auxiliares. - """ - self.permission_required = self.permission_required + \ - self.crud.permission_required - def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) """Força o template filter subnav em base/templatetags/menus.py diff --git a/sapl/utils.py b/sapl/utils.py index 0d195db0f..d30d71625 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -647,7 +647,7 @@ def parlamentares_ativos(data_inicio, data_fim=None): def show_results_filter_set(qr): query_params = set(qr.keys()) if ((len(query_params) == 1 and 'iframe' in query_params) or - len(query_params) == 0): + len(query_params) == 0): return False return True