def invite_user(self, user, created_by=None): invitation, created = self.invitations.update_or_create( user=user, meeting=self, defaults={'created_by': created_by}) track(user, 'meeting.invite', properties={'meeting_id': self.id}) return invitation, created
def uninvite_user(self, user): invitation = self.invitations.get(user=user) invitation.delete(force=True) track(user, 'meeting.uninvite', properties={'meeting_id': self.id})
def response_handler(token, user=None, request=None): track(user, 'authenticate') return {'token': token, 'user': MeSerializer(user).data}
def invite_user(self, user, created_by=None): invitation, created = self.invitations.update_or_create( user=user, meeting=self, defaults={"created_by": created_by}) track(user, "meeting.invite", properties={"meeting_id": self.id}) return invitation, created
def response_handler(token, user=None, request=None): track(user, "authenticate") return {"token": token, "user": MeSerializer(user).data}