def ban(item): item = ContentItem.get_by_id(item) item.banned = True item.save() return redirect("/")