def _get_translation_object(self, queryset, language_code):
        try:
            return queryset.filter(
                Q(language_code__iexact=language_code)
                | Q(language_code__iexact=short_language_code(language_code))
            ).order_by('-language_code')[0]
        except IndexError:
            try:
                return queryset.filter(
                    Q(language_code__istartswith=settings.LANGUAGE_CODE)
                    | Q(language_code__istartswith=short_language_code(
                        settings.LANGUAGE_CODE))
                ).order_by('-language_code')[0]
            except __HOLE__:
                try:
                    return queryset.all()[0]
                except IndexError:
                    raise queryset.model.DoesNotExist
dataset/ETHPy150Open feincms/feincms/feincms/translations.py/TranslatedObjectMixin._get_translation_object