(self)
return get_language_names(langs)
Returns all 2-letter language codes that are used by podcasts.

        It filters obviously invalid strings, but does not check if any
        of these codes is contained in ISO 639.
Returns all 2-letter language codes that are used by podcasts.
Returns all 2 - letter language codes that are used by podcasts .
def all_languages(self):
        """Returns all 2-letter language codes that are used by podcasts.

        It filters obviously invalid strings, but does not check if any
        of these codes is contained in ISO 639."""

        query = Podcast.objects.exclude(language__isnull=True)
        query = query.distinct("language").values("language")

        langs = [o["language"] for o in query]
        langs = sorted(sanitize_language_codes(langs))

        return get_language_names(langs)
def all_languages ( self ) : query = Podcast . objects . exclude ( language__isnull = True ) query = query . distinct ( "language" ) . values ( "language" ) langs = [ o [ "language" ] for o in query ] langs = sorted ( sanitize_language_codes ( langs ) ) return get_language_names ( langs )