From e61b5e76909c2ffec821a5aedc08590257ffbb63 Mon Sep 17 00:00:00 2001 From: Skia Date: Mon, 29 Aug 2016 01:31:58 +0200 Subject: [PATCH] Small fixes --- core/templates/core/base.jinja | 1 + migrate.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/templates/core/base.jinja b/core/templates/core/base.jinja index 0197679c..364ab707 100644 --- a/core/templates/core/base.jinja +++ b/core/templates/core/base.jinja @@ -108,6 +108,7 @@ $('.select_date').datepicker({ $(document).keydown(function (e) { if ($(e.target).is('input')) { return } if ($(e.target).is('textarea')) { return } + if ($(e.target).is('select')) { return } if (e.keyCode == 83) { $("#search").focus(); return false; diff --git a/migrate.py b/migrate.py index 16ff37e6..48eb335b 100644 --- a/migrate.py +++ b/migrate.py @@ -672,7 +672,7 @@ def check_accounts(): try: cust = Customer.objects.filter(user__id=r['id_utilisateur']).first() if int(cust.amount * 100) != r['montant_compte']: - print("Adding %s to %s's account" % (float(cust.amount) - (r['montant_compte']/100))) + print("Adding %s to %s's account" % (float(cust.amount) - (r['montant_compte']/100), cust.user)) new = Selling( label="Ajustement migration base de donnée", counter=mde,