From 59a0704addec0c9ef2a5d37c022e25a977136a3a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 17 Feb 2017 11:30:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BE=D0=BF=D1=86=D0=B8=D0=BE=D0=BD=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abonapp/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abonapp/models.py b/abonapp/models.py index 8d20b02..f5c7d54 100644 --- a/abonapp/models.py +++ b/abonapp/models.py @@ -199,12 +199,12 @@ class Abon(UserProfile): self.ballance -= how_match_to_pay # Пополняем счёт - def add_ballance(self, current_user, amount): + def add_ballance(self, current_user, amount, comment): AbonLog.objects.create( abon=self, amount=amount, author=current_user, - comment='Пополнение счёта через админку' + comment=comment ) self.ballance += amount