Conditions | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from django.contrib.auth.tokens import default_token_generator |
||
29 | def get_context_data(self): |
||
30 | context = super(PasswordResetEmail, self).get_context_data() |
||
31 | |||
32 | user = context.get('user') |
||
33 | context['uid'] = utils.encode_uid(user.pk) |
||
34 | context['token'] = default_token_generator.make_token(user) |
||
35 | context['url'] = settings.ACTIVATION_URL.format(**context) |
||
36 | return context |
||
37 |
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.