From 28190a94b4cf976f79e1bee43235cd870862939e Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Mon, 18 Jan 2016 12:13:33 +0100 Subject: [PATCH] compute hash from id and issue date only (#9688) --- .../data/management/commands/email_new_invoices.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/synchro_orleans/data/management/commands/email_new_invoices.py b/synchro_orleans/data/management/commands/email_new_invoices.py index 0e3717b..d0635a8 100644 --- a/synchro_orleans/data/management/commands/email_new_invoices.py +++ b/synchro_orleans/data/management/commands/email_new_invoices.py @@ -94,9 +94,7 @@ class Command(BaseCommand): except (KeyError, ValueError): continue attachment = os.path.join(settings.INVOICES_DIR, 'facture_%s.pdf' % invoice.id) - invoice_hash = self.get_invoice_hash(invoice.id, - invoice.date_generation, - invoice.montant) + invoice_hash = self.get_invoice_hash(invoice.id, invoice.date_generation) context = {'invoice': invoice, 'invoice_view_url_base': invoice_view_url_base, 'invoice_hash': invoice_hash}