def get_childs(request, item): "возвращает список дочерних объектов" return item.get_childs() if item else Items.get_root()