mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-29 09:24:43 +00:00
Update README.rst
"recipient" can also be a Group
This commit is contained in:
parent
34f9698659
commit
3da99ca328
1 changed files with 2 additions and 1 deletions
|
|
@ -99,7 +99,8 @@ To generate an notification anywhere in your code, simply import the notify sign
|
|||
|
||||
notify.send(user, recipient=user, verb='you reached level 10')
|
||||
|
||||
notify.send(comment.user, recipient=user, verb=u'replied', action_object=comment,
|
||||
// "recipient" can also be a Group, the notification will be sent to all the Users in the Group
|
||||
notify.send(comment.user, recipient=group, verb=u'replied', action_object=comment,
|
||||
description=comment.comment, target=comment.content_object)
|
||||
|
||||
notify.send(follow_instance.user, recipient=follow_instance.follow_object, verb=u'has followed you',
|
||||
|
|
|
|||
Loading…
Reference in a new issue