django/tests/user_commands/management/commands/no_translations.py

10 lines
240 B
Python
Raw Normal View History

from django.core.management.base import BaseCommand, no_translations
from django.utils import translation
class Command(BaseCommand):
@no_translations
def handle(self, *args, **options):
return translation.get_language()