def handle(self): guest_groups = [] for gg in GuestGroup.get_all(): gg = gg.to_dict() guest_groups.append(gg) return {"success": True, "list": guest_groups}