From patchwork Thu Jun 14 05:52:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 9276 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 75F4823EE2 for ; Thu, 14 Jun 2012 05:52:13 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3FEBEA1810A for ; Thu, 14 Jun 2012 05:52:13 +0000 (UTC) Received: by yenq6 with SMTP id q6so1278385yen.11 for ; Wed, 13 Jun 2012 22:52:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=7kz8T4wgXMcYgN6aHM+wukRrMY2vRnF3uYu+TXImpMQ=; b=dC1aXI3NkYZtjmrEjdc90aANc13tdEju1x1UEp0x76lrtwrOq9s4LgsEP7Z15mnLMa PyVjYhODWBo2KoL+2yb60jBn+SQDwfrzWfQ0N25bRqYP6GUtte2F0492mj6PtPX86JTP 8j+0QCJxYVzas7h3C5zbX7W39IPf97SS8f3kziNikhzWEoycjwbrC90i3vTWEG5g0fA1 U0WUGAOoZDoWrncR+AouCxbR7C5ioeahjsmxmU3ug3ykxEnhvdJc6v2sGinsy/Z/h4el fR3Vr1oXuOOPgzWegW/Q6VxJDYhbKfgkMbgkIsxnEzNxEbKRD9E3aVjVa2Tuq32Z8v1N caTw== Received: by 10.50.160.198 with SMTP id xm6mr12185679igb.0.1339653132569; Wed, 13 Jun 2012 22:52:12 -0700 (PDT) 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.231.24.148 with SMTP id v20csp62285ibb; Wed, 13 Jun 2012 22:52:11 -0700 (PDT) Received: by 10.180.92.65 with SMTP id ck1mr43505476wib.14.1339653131063; Wed, 13 Jun 2012 22:52:11 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id v40si6941657weq.39.2012.06.13.22.52.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jun 2012 22:52:11 -0700 (PDT) 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 1Sf2yY-0001PA-HP for ; Thu, 14 Jun 2012 05:52:10 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 78003E002A for ; Thu, 14 Jun 2012 05:52:10 +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: 319 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dashboard/trunk] Rev 319: make sorting by column work on the test runs in bundle view Message-Id: <20120614055210.29783.17227.launchpad@ackee.canonical.com> Date: Thu, 14 Jun 2012 05:52:10 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15405"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: d79b1acfbf91d4cd60d28906e06b70ef070ab18f X-Gm-Message-State: ALoCoQnj5gnBgcRQCVylHETqm9BGRwnOIWXK0IzogYcFc7bFqzlV99NlbQqUZ2QdgJDcZxx9WUIU ------------------------------------------------------------ revno: 319 committer: Michael Hudson-Doyle branch nick: trunk timestamp: Thu 2012-06-14 17:50:23 +1200 message: make sorting by column work on the test runs in bundle view modified: 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/views.py' --- dashboard_app/views.py 2012-05-03 14:39:17 +0000 +++ dashboard_app/views.py 2012-06-14 05:50:23 +0000 @@ -328,10 +328,12 @@ ) uploaded_on = TemplateColumn( - '{{ record.bundle.uploaded_on|date:"Y-m-d H:i:s" }}') + '{{ record.bundle.uploaded_on|date:"Y-m-d H:i:s" }}', + accessor='bundle__uploaded_on') analyzed_on = TemplateColumn( - '{{ record.analyzer_assigned_date|date:"Y-m-d H:i:s" }}') + '{{ record.analyzer_assigned_date|date:"Y-m-d H:i:s" }}', + accessor='analyzer_assigned_date') def get_queryset(self, bundle_stream): return TestRun.objects.filter(