diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 9a289cc20..5f105ac01 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -468,7 +468,7 @@ class ParlamentarCrud(Crud): for l in Legislatura.objects.all(): if l.atual(): return l.id - return 0 + return l.first() def get_queryset(self): queryset = super().get_queryset()