Skip to content

Commit

Permalink
improve documentation
Browse files Browse the repository at this point in the history
Show import required for `send_now`, `send`, `queue`.
  • Loading branch information
grahamu authored Nov 17, 2017
1 parent 64d29cf commit ac0fc53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ There are two different ways of sending out notifications. We have support
for blocking and non-blocking methods of sending notifications. The most
simple way to send out a notification, for example::

from pinax.notifications.models import send_now, send, queue

send([to_user], "friends_invite", {"from_user": from_user})

One thing to note is that `send` is a proxy around either `send_now` or
Expand Down

0 comments on commit ac0fc53

Please sign in to comment.