Skip to content

Commit

Permalink
Merge 783c99c into 9802e24
Browse files Browse the repository at this point in the history
  • Loading branch information
jbc22 committed Jul 25, 2019
2 parents 9802e24 + 783c99c commit 0a23b51
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ ACCOUNT_ADAPTER = 'invitations.models.InvitationsAdapter'

### Sending Invites

First import the model:

```
from invitations.utils import get_invitation_model
```

Make an instance of the model:

```
Invitation = get_invitation_model()
```

Then finally pass the recipient to the model and send.

```
# inviter argument is optional
invite = Invitation.create('email@example.com', inviter=request.user)
Expand Down

0 comments on commit 0a23b51

Please sign in to comment.