Skip to content

Commit

Permalink
Add missing imports to readme/snippet (fixes #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
anx-ckreuzberger committed Apr 15, 2019
1 parent e7e61fb commit aa67f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ Within the templates, you can access the following context variables: `current_u

2. Add the following code, which contains a Django Signal, to your application (see [this part of the django documentation](https://docs.djangoproject.com/en/1.11/topics/signals/#connecting-receiver-functions) for more information on where to put signals).
```python
from django.core.mail import EmailMultiAlternatives
from django.dispatch import receiver
from django_rest_passwordreset.signals import reset_password_token_created
from django.template.loader import render_to_string
from django.urls import reverse

from django_rest_passwordreset.signals import reset_password_token_created


@receiver(reset_password_token_created)
def password_reset_token_created(sender, instance, reset_password_token, *args, **kwargs):
Expand Down

0 comments on commit aa67f94

Please sign in to comment.