Garde la locale par defaut dans les management commands

This commit is contained in:
Basile Clement 2016-11-12 11:09:40 +01:00
parent 567c9a0a6d
commit 03f7dff813
2 changed files with 2 additions and 0 deletions

View file

@ -11,6 +11,7 @@ from bda.models import SpectacleRevente
class Command(BaseCommand):
help = "Envoie les mails de notification et effectue " \
"les tirages au sort des reventes"
leave_locale_alone = True
def handle(self, *args, **options):
now = timezone.now()

View file

@ -11,6 +11,7 @@ from bda.models import Spectacle
class Command(BaseCommand):
help = 'Envoie les mails de rappel des spectacles dont la date ' \
'approche.\nNe renvoie pas les mails déjà envoyés.'
leave_locale_alone = True
def handle(self, *args, **options):
now = timezone.now()