| Total Complexity | 1 | 
| Total Lines | 11 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from django.contrib.auth.tokens import default_token_generator | ||
| 9 | class ActivationEmail(BaseEmailMessage): | ||
| 10 | template_name = 'email/activation.html' | ||
| 11 | |||
| 12 | def get_context_data(self): | ||
| 13 | context = super(ActivationEmail, self).get_context_data() | ||
| 14 | |||
| 15 |         user = context.get('user') | ||
| 16 | context['uid'] = utils.encode_uid(user.pk) | ||
| 17 | context['token'] = default_token_generator.make_token(user) | ||
| 18 | context['url'] = settings.ACTIVATION_URL.format(**context) | ||
| 19 | return context | ||
| 20 | |||
| 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.