All Authentication built in views assume that default templates and paths are used
The documentation for the built in views in the Authentication battery, such as django.contrib.auth.views.password_change() says that the only optional argument is template_name if not using the default. Using a different template_name causes a NoReverseMatch error. Looking at the code, there is a second argument, post_change_redirect, which has to be defined if a different path from the default is used. Other, similar arguments apply to password_reset() for post_reset_redirect and email_template_name. These additional arguments should be documented. I would suggest that ideally there should no defaults at all and the paths and templates should be defined in settings.py or in a separate configuration file.
Change History
(5)
| milestone: |
→ 1.1
|
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to Jacob
|
| Status: |
new → assigned
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
Milestone post-1.0 deleted