forked from DGNum/gestioCOF
not supporting future.builtins anymore in templatetags
This commit is contained in:
parent
bc14205d29
commit
44202811ae
1 changed files with 2 additions and 3 deletions
|
@ -40,6 +40,5 @@ def highlight_clipper(clipper, q):
|
|||
|
||||
@register.filter()
|
||||
def ukf(balance, is_cof):
|
||||
grant = 1 + float(Settings.SUBVENTION_COF()) / 100 if is_cof else 1.
|
||||
# float nécessaire car sinon problème avec le round de future.builtins
|
||||
return floor(float(balance) * 10 * grant)
|
||||
grant = is_cof and (1 + Settings.SUBVENTION_COF() / 100) or 1
|
||||
return floor(balance * 10 * grant)
|
||||
|
|
Loading…
Reference in a new issue