@ -91,7 +91,11 @@ class User(AbstractUser):
@property
def balance(self):
aggregate = self.balances.filter(type=0).aggregate(
aggregate = self.balances.filter(
type=0,
payment__isnull=False,
payment__status__isnull=False
).aggregate(
models.Sum('amount'),
models.Sum('commission'),
)