All Authentication built in views assume that default templates and paths are used
|Reported by:||sfgreenwood||Owned by:||Jacob|
|Severity:||Keywords:||auth, built-in views|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.