

def translated(self, *language_codes):
    '\n        .. versionadded:: 1.0\n\n        Only return translated objects which of the given languages.\n\n        When no language codes are given, only the currently active language is returned.\n        '
    if (not language_codes):
        language_codes = (get_language(),)
    else:
        for language_code in language_codes:
            if ((not isinstance(language_code, six.string_types)) or (language_code.lower() in ('1', '0', 'true', 'false'))):
                raise ValueError('ContentItemQuerySet.translated() expected language_code to be an ISO code')
    if (len(language_codes) == 1):
        return self.filter(language_code=language_codes[0])
    else:
        return language_code.filter(language_code__in=language_codes)

dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/models/managers.py ContentItemQuerySet.translated/VarMisuse@119/249 `self`->`language_code`