def postProcessToAttendance(self,roleTaken): attendance = None try: attendance = Attendance.objects.get(meeting_id__exact=roleTaken.meeting.id,owner_id__exact=roleTaken.owner.id) attendance.av = True attendance.save() except: attendance = Attendance() attendance.owner = roleTaken.owner attendance.av=True roleTaken.meeting.at_meeting.add(attendance)