def delete_invitation(self, club): try: database.delete_rows('invitation', { 'invitation_club': club.id, 'invitation_user': self.id }) except NoRow: pass
def signup_undo(self, user): database.delete_rows('signup', { 'signup_act': self.id, 'signup_user': user.id })
def remove_picture(self, upload): database.delete_rows('act_pic', { 'actpic_act': self.id, 'actpic_upload': upload.id }) del self.pictures
def attend_undo(self, user): database.delete_rows('attendance', { 'att_act': self.id, 'att_user': user.id }) del self.attendance
def remove_member(self, user): database.delete_rows('club_member', { 'cm_club': self.id, 'cm_user': user.id }) del self.members