diff --git a/sapl/base/views.py b/sapl/base/views.py
index 133c1b0d5..cb0a9ff41 100644
--- a/sapl/base/views.py
+++ b/sapl/base/views.py
@@ -1108,9 +1108,7 @@ class ListarBancadaComissaoAutorExternoView(PermissionRequiredMixin, ListView):
def autores_duplicados():
- return [autor.values() for autor in Autor.objects.values(
- 'nome', 'tipo__descricao').order_by(
- "nome").annotate(count=Count('nome')).filter(count__gt=1)]
+ return [autor for autor in Autor.objects.values('nome').annotate(count=Count('nome')).filter(count__gt=1)]
class ListarAutoresDuplicadosView(PermissionRequiredMixin, ListView):
@@ -1124,8 +1122,7 @@ class ListarAutoresDuplicadosView(PermissionRequiredMixin, ListView):
return autores_duplicados()
def get_context_data(self, **kwargs):
- context = super(
- ListarAutoresDuplicadosView, self).get_context_data(**kwargs)
+ context = super().get_context_data(**kwargs)
paginator = context['paginator']
page_obj = context['page_obj']
context['page_range'] = make_pagination(
diff --git a/sapl/templates/base/autores_duplicados.html b/sapl/templates/base/autores_duplicados.html
index a7861aecd..361ff7add 100644
--- a/sapl/templates/base/autores_duplicados.html
+++ b/sapl/templates/base/autores_duplicados.html
@@ -11,16 +11,14 @@
Autor
- Tipo de Autor
Quantidade