From 397fd0bfd6ed23bf62fd8113f48c93f6cf616a05 Mon Sep 17 00:00:00 2001 From: gzbender Date: Thu, 22 Aug 2019 21:23:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20/=20=D0=9F=D0=BE=D1=81?= =?UTF-8?q?=D0=BB=D0=B5=20=D0=BE=D0=BF=D0=BB=D0=B0=D1=82=D1=8B=20=D0=B1?= =?UTF-8?q?=D0=BE=D0=BD=D1=83=D1=81=D0=B0=D0=BC=D0=B8=20=D0=BF=D0=BE=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=20=D0=BF=D0=BE=D0=BF?= =?UTF-8?q?=D0=B0=D0=BF=20"=D0=B2=D0=B0=D0=BC=20=D0=BD=D0=B0=D1=87=D0=B8?= =?UTF-8?q?=D1=81=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=A5=20=D0=BB=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=B2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user/models.py b/apps/user/models.py index efeda23d..7a774998 100644 --- a/apps/user/models.py +++ b/apps/user/models.py @@ -156,7 +156,7 @@ class User(AbstractUser): last_bonus = self.bonuses.filter( Q(payment__isnull=False, payment__status__in=Payment.PW_PAID_STATUSES) | Q(is_service=True), ).order_by('-created_at').first() - return bool(last_bonus) and not last_bonus.notified_at + return bool(last_bonus) and last_bonus.amount > 0 and not last_bonus.notified_at @property def paid_one_more(self):