From 05dce0ded1a2ce3d9ae5b93288fa6473761ed8a9 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 12 Feb 2017 18:49:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=B2=20=5F=5Fstr=5F=5F=20=D0=B4=D0=BB=D1=8F=20=D1=82?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D1=84=D1=84.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tariff_app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tariff_app/models.py b/tariff_app/models.py index f177a45..411f5c0 100644 --- a/tariff_app/models.py +++ b/tariff_app/models.py @@ -31,4 +31,4 @@ class Tariff(models.Model): return res_type() def __str__(self): - return "%s (%f)" % (self.title, self.amount) + return "%s (%.2f)" % (self.title, self.amount)