Ejemplo 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
Ejemplo 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
Ejemplo 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