diff --git a/sapl/base/forms.py b/sapl/base/forms.py index 6fcdcf5de..085e6c4ea 100644 --- a/sapl/base/forms.py +++ b/sapl/base/forms.py @@ -11,8 +11,7 @@ from django.utils.translation import ugettext_lazy as _ from sapl.crispy_layout_mixin import form_actions, to_row from sapl.materia.models import MateriaLegislativa from sapl.settings import MAX_IMAGE_UPLOAD_SIZE -from sapl.utils import (RANGE_ANOS, ImageThumbnailFileInput, autor_label, - autor_modal) +from sapl.utils import ImageThumbnailFileInput, autor_label, autor_modal from .models import CasaLegislativa diff --git a/sapl/base/views.py b/sapl/base/views.py index 1e4ae15f1..719215d3e 100644 --- a/sapl/base/views.py +++ b/sapl/base/views.py @@ -6,7 +6,7 @@ from django.views.generic.base import TemplateView from django_filters.views import FilterView from sapl.crud.base import (Crud, CrudBaseMixin, CrudCreateView, - CrudDetailView, CrudUpdateView, make_pagination) + CrudDetailView, CrudUpdateView) from sapl.materia.models import MateriaLegislativa, TipoMateriaLegislativa from sapl.utils import permissao_tb_aux @@ -21,7 +21,6 @@ def get_casalegislativa(): class RelatorioMateriasPorAutorView(FilterView): model = MateriaLegislativa filterset_class = RelatorioMateriasPorAutorFilterSet - paginate_by = 10 template_name = 'base/RelatorioMateriasPorAutor_filter.html' def get_filterset_kwargs(self, filterset_class): @@ -29,8 +28,6 @@ class RelatorioMateriasPorAutorView(FilterView): self).get_filterset_kwargs(filterset_class) kwargs = {'data': self.request.GET or None} - qs = self.get_queryset() - return kwargs def get_context_data(self, **kwargs): diff --git a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html index 2df425be5..889caf0f1 100644 --- a/sapl/templates/base/RelatorioMateriasPorAutor_filter.html +++ b/sapl/templates/base/RelatorioMateriasPorAutor_filter.html @@ -55,10 +55,6 @@ {% endfor %} - - {% include "paginacao.html" %} - - {% endif %} {% endblock base_content %}