def _transformer(self, objs): current_versions = [ obj.addon._current_version for obj in objs if obj.addon._current_version ] addons = [obj.addon for obj in objs] Version.transformer_promoted(current_versions) Version.transformer_license(current_versions) attach_tags(addons)
def get_tags(self, obj): if not hasattr(obj, 'tag_list'): attach_tags([obj]) # attach_tags() might not have attached anything to the addon, if it # had no tags. return getattr(obj, 'tag_list', [])
def get_tags(self, obj): if not hasattr(obj, "tag_list"): attach_tags([obj]) # attach_tags() might not have attached anything to the addon, if it # had no tags. return getattr(obj, "tag_list", [])