django1/tests/user_commands/management/commands/leave_locale_alone_false.py

11 lines
264 B
Python
Raw Normal View History

from django.core.management.base import BaseCommand
from django.utils import translation
class Command(BaseCommand):
can_import_settings = True
leave_locale_alone = False
def handle(self, *args, **options):
return translation.get_language()