[extensions-web] Only show visible extensions in the pagination list (and AJAX query)
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Only show visible extensions in the pagination list (and AJAX query)
- Date: Sun, 18 Dec 2011 04:04:49 +0000 (UTC)
commit e9a4f4579d60491b584ebaccee7d26b5403f499c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Dec 17 23:04:34 2011 -0500
Only show visible extensions in the pagination list (and AJAX query)
sweettooth/extensions/views.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/views.py b/sweettooth/extensions/views.py
index 1506401..6df9782 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -93,7 +93,7 @@ def ajax_query_params_query(request):
if uuids:
query_params['uuid__in'] = uuids
- queryset = models.Extension.objects.filter(**query_params)
+ queryset = models.Extension.objects.visible().filter(**query_params)
sort = request.GET.get('sort', 'name')
sort = dict(recent='created').get(sort, sort)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]