def invite_invitee(self, message_type): ctx = { 'actor': self.playdate.organizer.get_profile(), 'actor_child': self.organizer_child, 'actee':self.to_user.get_profile(), 'actee_child':self.to_child, 'message':self.playdate.details, 'playdate':self.playdate, 'playdate_url':self.playdate_url, } create_message(self.playdate.organizer, self.to_user, message_type, ctx, category='Playdate Request', associated_item=self.playdate.id) send_invite_email(self.to_user.email, self.playdate.invite_design, ctx)
def invite_invitee(self, message_type): ctx = { 'email': self.email, 'actor': self.playdate.organizer.get_profile(), 'actor_child': self.organizer_child, 'message':self.playdate.details, 'playdate':self.playdate, 'invite_id':self.id, 'token':self.token, 'playdate_url':self.playdate_url, } send_invite_email(self.email, self.playdate.invite_design, ctx)