From patchwork Thu Dec 15 16:15:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 5776 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AE62023E03 for ; Thu, 15 Dec 2011 16:15:18 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9ED82A188D3 for ; Thu, 15 Dec 2011 16:15:18 +0000 (UTC) Received: by eaak10 with SMTP id k10so2390206eaa.11 for ; Thu, 15 Dec 2011 08:15:18 -0800 (PST) Received: by 10.204.157.12 with SMTP id z12mr1582695bkw.18.1323965718064; Thu, 15 Dec 2011 08:15:18 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs46001bkc; Thu, 15 Dec 2011 08:15:17 -0800 (PST) Received: by 10.180.106.102 with SMTP id gt6mr6262934wib.24.1323965716662; Thu, 15 Dec 2011 08:15:16 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id i55si1814937wed.13.2011.12.15.08.15.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 08:15:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RbDxk-0005f4-Ed for ; Thu, 15 Dec 2011 16:15:16 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 63000E03B0 for ; Thu, 15 Dec 2011 16:15:16 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dashboard X-Launchpad-Branch: ~linaro-validation/lava-dashboard/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 288 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 288: Fix sorting on bundle_list Message-Id: <20111215161516.10648.49574.launchpad@ackee.canonical.com> Date: Thu, 15 Dec 2011 16:15:16 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14487"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 37d96cc54427e6dc5d6dfadcda7de72e5b17927c ------------------------------------------------------------ revno: 288 committer: Paul Larson branch nick: lava-dashboard timestamp: Thu 2011-12-15 10:13:43 -0600 message: Fix sorting on bundle_list modified: dashboard_app/templates/dashboard_app/bundle_list.html dashboard_app/views.py --- lp:lava-dashboard https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk You are subscribed to branch lp:lava-dashboard. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription === modified file 'dashboard_app/templates/dashboard_app/bundle_list.html' --- dashboard_app/templates/dashboard_app/bundle_list.html 2011-11-15 19:03:46 +0000 +++ dashboard_app/templates/dashboard_app/bundle_list.html 2011-12-15 16:13:43 +0000 @@ -35,7 +35,7 @@ oTable = $('#bundles').dataTable({ bJQueryUI: true, sPaginationType: "full_numbers", - aaSorting: [[1, "desc"]], + aaSorting: [[4, "desc"]], iDisplayLength: 25, aLengthMenu: [[10, 25, 50, -1], [10, 25, 50, "All"]], sDom: 'lfr<"#master-toolbar">t<"F"ip>' === modified file 'dashboard_app/views.py' --- dashboard_app/views.py 2011-11-09 00:02:25 +0000 +++ dashboard_app/views.py 2011-12-15 16:13:43 +0000 @@ -136,7 +136,8 @@ ) return object_list( request, - queryset=bundle_stream.bundles.select_related('bundle_stream', 'deserialization_error').order_by('-uploaded_on'), + queryset=bundle_stream.bundles.select_related( + 'bundle_stream', 'deserialization_error'), template_name="dashboard_app/bundle_list.html", template_object_name="bundle", extra_context={