From d8f572bb01d7537e8d0c6bacb7399c9e4b28562d Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 25 Mar 2017 09:57:44 -0300 Subject: [PATCH] Remove group check in is_checkout --- kfet/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kfet/models.py b/kfet/models.py index db7381e5..f9cc321b 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -569,8 +569,7 @@ class Operation(models.Model): def is_checkout(self): return (self.type == Operation.DEPOSIT or self.type == Operation.WITHDRAW or - (self.type == Operation.PURCHASE and self.group and - self.group.on_acc.is_cash) + (self.type == Operation.PURCHASE and self.group.on_acc.is_cash) ) def __str__(self):