Esempio n. 1
0
	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
Esempio n. 2
0
    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
Esempio n. 3
0
	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