Correction nouveau neg

- Echec d'indentation corrigé
- Plus de CSS pour les pages normales
This commit is contained in:
Aurélien Delobelle 2016-08-20 01:20:06 +02:00
parent 056fb610de
commit 813b7230b6
6 changed files with 109 additions and 40 deletions

View file

@ -133,7 +133,7 @@ class Account(models.Model):
else:
overdraft_until = timezone.now() + overdraft_duration_max
# Checking it doesn't break 1 rule
if new_balance < overdraft_amount_max or timezone.now() > overdraft_until:
if new_balance < overdraft_amount or timezone.now() > overdraft_until:
stop_ope = True
perms.add('kfet.perform_negative_operations')
return perms, stop_ope