finish commit 090b8f3c9e
(use timezone.now)
This commit is contained in:
parent
77d414aec4
commit
58eecf95ac
|
@ -126,6 +126,6 @@ class Command(BaseCommand):
|
|||
message.send()
|
||||
logger.debug('email for invoice nr. %s sent' % invoice.id)
|
||||
|
||||
invoice.date_envoi_dernier_mail = make_aware(datetime.now(), get_current_timezone())
|
||||
invoice.date_envoi_dernier_mail = timezone.now()
|
||||
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
|
||||
invoice.save()
|
||||
|
|
Reference in New Issue