From patchwork Mon Mar 22 09:42:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Yang X-Patchwork-Id: 87389 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2M9gVvs010064 for ; Mon, 22 Mar 2010 09:42:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754414Ab0CVJmV (ORCPT ); Mon, 22 Mar 2010 05:42:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16754 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754303Ab0CVJmV (ORCPT ); Mon, 22 Mar 2010 05:42:21 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2M9gJGT027361 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Mar 2010 05:42:19 -0400 Received: from localhost.localdomain ([10.66.91.72]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2M9gHKR029371; Mon, 22 Mar 2010 05:42:18 -0400 From: Feng Yang To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Feng Yang Subject: [PATCH] Change decimal_places from 31 to 2 in frontend/tko/models.py Date: Mon, 22 Mar 2010 17:42:16 +0800 Message-Id: <1269250936-9550-1-git-send-email-fyang@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 22 Mar 2010 09:42:31 +0000 (UTC) diff --git a/frontend/tko/models.py b/frontend/tko/models.py index 7348b07..abf12b2 100644 --- a/frontend/tko/models.py +++ b/frontend/tko/models.py @@ -231,7 +231,7 @@ class IterationResult(dbmodels.Model, model_logic.ModelExtensions): test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True) iteration = dbmodels.IntegerField() attribute = dbmodels.CharField(max_length=90) - value = dbmodels.DecimalField(null=True, max_digits=12, decimal_places=31, + value = dbmodels.DecimalField(null=True, max_digits=12, decimal_places=2, blank=True) objects = model_logic.ExtendedManager()