def METHOD_NAME(self):
    """
    Return languages tabs that need to be displayed.
    """
    languages = [lang for lang in self.languages
                 if lang in self.data
                 or self.instance.has_translation(lang)]
    return languages