summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-02 17:35:47 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-10-02 17:35:47 (GMT)
commite0bff3128cc3c3274ca3a854e0cf6e79a358daca (patch)
tree5df8ecd3bec5a2eb7105db3183d1d4972b3ec6cf
parent3c427245964015461fe7814571403a9f54a1c5ca (diff)
downloadauthentic2-cut-e0bff3128cc3c3274ca3a854e0cf6e79a358daca.zip
authentic2-cut-e0bff3128cc3c3274ca3a854e0cf6e79a358daca.tar.gz
authentic2-cut-e0bff3128cc3c3274ca3a854e0cf6e79a358daca.tar.bz2
views: ne pas filter les requĂȘtes de validation via .search_validationrequest (fixes #26930)v1.1.0
-rw-r--r--src/authentic2_cut/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/authentic2_cut/views.py b/src/authentic2_cut/views.py
index 4a5a977..1a73bea 100644
--- a/src/authentic2_cut/views.py
+++ b/src/authentic2_cut/views.py
@@ -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()