def follow(self): db.following.save(vars(self)) # Notification for the Followee notification = Notification({"uid": self.followee}) notification.make_follow(follower_id=self.follower) notification.save() return self
def follow(self): from sefaria.model.notification import Notification db.following.save(vars(self)) # Notification for the Followee notification = Notification({"uid": self.followee}) notification.make_follow(follower_id=self.follower) notification.save() return self