def load(self): return Group.select()
def _initData(self): groups = list(Group.select()) for g in groups: setattr(g, "friendModel", FriendModel(parent=self, groupId=g.id)) self.setAll(groups)