def __init__(self, question): self.question = question super(MyQuestion, self).__init__(Session.object_session(self.question))
def __init__(self, announcement): self.announcement = announcement super(MyAnnouncement, self).\ __init__(Session.object_session(self.announcement))