def get_title(self, article, language, language_fallback=False):
        """
        Gets the latest content for a particular article and language. Falls back
        to another language if wanted.
        """
        try:
            title = self.get(language=language, article=article)
            return title
        except self.model.DoesNotExist:
            if language_fallback:
                try:
                    titles = self.filter(article=article)
                    fallbacks = get_fallback_languages(language)
                    for lang in fallbacks:
                        for title in titles:
                            if lang == title.language:
                                return title
                    return None
                except self.model.DoesNotExist:
                    pass
            else:
                raise
        return None
def get_title ( self , article , language , language_fallback = False ) : try : title = self . get ( language = language , article = article ) return title except self . model . DoesNotExist : if language_fallback : try : titles = self . filter ( article = article ) fallbacks = get_fallback_languages ( language ) for lang in fallbacks : for title in titles : if lang == title . language : return title return None except self . model . DoesNotExist : pass else : raise return None
Gets the latest content for a particular article and language. Falls back
        to another language if wanted.