| Conditions | 2 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from djoser import utils  | 
            ||
| 21 | def confirmation_email(request, context):  | 
            ||
| 22 | utils.validate_context_user_for_email(context)  | 
            ||
| 23 | user = context['user']  | 
            ||
| 24 | |||
| 25 | user_email = utils.get_user_email(user)  | 
            ||
| 26 | assert user_email is not None  | 
            ||
| 27 | to = [user_email]  | 
            ||
| 28 | settings.EMAIL.confirmation(request, context).send(to)  | 
            ||
| 29 | |||
| 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.