Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
http://luc.lino-framework.org/blog/2016/1222.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaffre committed Dec 22, 2016
1 parent cba1a01 commit e558e77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tutorials/workflows_tutorial/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class WakeupEntry(dd.ChangeStateAction, NotableAction):
# in our example, waking up an antry will send a notification

def get_notify_recipients(self, ar, obj):
return rt.models.User.objects.all()
for u in rt.models.User.objects.all():
yield (u, u.mail_mode)

def get_notify_subject(self, ar, obj):
return _("Entry %s has been reactivated!") % obj
Expand Down

0 comments on commit e558e77

Please sign in to comment.