views: ne pas filter les requêtes de validation via .search_validationrequest (fixes #26930)
This commit is contained in:
parent
3c42724596
commit
e0bff3128c
|
@ -26,7 +26,7 @@ from django.http import HttpResponse, HttpResponseRedirect, Http404
|
|||
from django.db.transaction import atomic
|
||||
|
||||
from authentic2.views import EditProfile
|
||||
from authentic2.manager.views import SimpleSubTableView, BaseTableView
|
||||
from authentic2.manager.views import SimpleSubTableView, BaseTableView, FilterQuerysetByPermMixin
|
||||
from authentic2.manager.user_views import UserEditView, UserDetailView
|
||||
from authentic2 import hooks
|
||||
from authentic2.utils import redirect
|
||||
|
@ -285,7 +285,7 @@ class ValidationHomepage(BaseTableView):
|
|||
title = _('Validation requests')
|
||||
|
||||
def get_queryset(self):
|
||||
qs = super(ValidationHomepage, self).get_queryset()
|
||||
qs = super(FilterQuerysetByPermMixin, self).get_queryset()
|
||||
if 'all' not in self.request.GET:
|
||||
qs = qs.filter(status=models.ValidationRequest.STATUS_RECEIVED)
|
||||
qs = qs.prefetch_related('origin').select_related()
|
||||
|
|
Loading…
Reference in New Issue