| Conditions | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from djoser import utils |
||
| 31 | def password_reset_email(request, context): |
||
| 32 | utils.validate_context_user_for_email(context) |
||
| 33 | user = context['user'] |
||
| 34 | |||
| 35 | user_email = utils.get_user_email(user) |
||
| 36 | assert user_email is not None |
||
| 37 | to = [user_email] |
||
| 38 | settings.EMAIL.password_reset(request, context).send(to) |
||
| 39 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.