

def get_fallback_language(self, language_code=None, site_id=None):
    '\n        Find out what the fallback language is for a given language choice.\n\n        .. deprecated:: 1.5\n           Use :func:`get_fallback_languages` instead.\n        '
    choices = self.get_active_choices(language_code, site_id=site_id)
    if (choices and (len(choices) > 1)):
        return choices[(- 1)]
    else:
        return None

dataset/ETHPy150Open edoburu/django-parler/parler/utils/conf.py LanguagesSetting.get_fallback_language/original