[extensions-web] views: Make sure we don't show all extensions when the version doesn't exist
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] views: Make sure we don't show all extensions when the version doesn't exist
- Date: Mon, 24 Jun 2013 16:45:19 +0000 (UTC)
commit dc4563569f03ba1ed53c1a72c01518fe684f62ec
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jun 24 12:44:30 2013 -0400
views: Make sure we don't show all extensions when the version doesn't exist
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 f08ad42..f03f522 100644
--- a/sweettooth/extensions/views.py
+++ b/sweettooth/extensions/views.py
@@ -120,7 +120,7 @@ def shell_update(request):
def ajax_query_params_query(request, versions, n_per_page):
version_qs = models.ExtensionVersion.objects.visible()
- if versions:
+ if versions is not None:
version_qs = version_qs.filter(shell_versions__in=versions)
queryset = models.Extension.objects.distinct().filter(versions__in=version_qs)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]