def create_ask_borrow(cls, watcher, target, movie): n = cls.objects.create(watcher=watcher, type=cls.ASK_BORROW, target=target,movie=movie) EmailService.process_notif(cls, n)
def create_ask_review(cls, watcher, target, movie): n = cls.objects.create(watcher=watcher, type=cls.ASK_REVIEW, target=target, movie=movie) EmailService.process_notif(cls, n)
def create_suggestion(cls, watcher, target, movie): n = notif = cls.objects.create(watcher=watcher, type=cls.SUGGESTION, target=target, movie=movie) EmailService.process_notif(cls, n)
def create_ask_suggestion(cls, watcher, target): n = cls.objects.create(watcher=watcher, type=cls.ASK_SUGGESTION, target=target) EmailService.process_notif(cls, n)
def create_news(cls, watcher, text): n = cls.objects.create(watcher=watcher, type=cls.NEWS, text=text) EmailService.process_notif(cls, n)