do not store notification when listing invoices

This commit is contained in:
Serghei Mihai 2015-09-15 16:42:05 +02:00
parent 4b8dccc43a
commit 51fb1f754c
1 changed files with 1 additions and 2 deletions

View File

@ -81,8 +81,7 @@ class Command(BaseCommand):
if notification.date_sent > make_aware(datetime.now(), get_current_timezone()) - timedelta(days=notification_timeout):
continue
except InvoiceNotificationEmail.DoesNotExist:
if not options['list'] or not options['fake']:
InvoiceNotificationEmail.objects.create(invoice_number=invoice.id)
pass
nameid = invoice.famille.liaisonnameidfamille_set.all()[0]
signed_query = signature.sign_query('orig=synchro-orleans', settings.EMAILING_APIKEY)