Add django.contrib.redirects setting for turning redirect on/off.
|Reported by:||Melevir||Owned by:||Melevir|
|Severity:||Normal||Keywords:||schemamigration, redirects, is_active|
|Cc:||Melevir, berker.peksag@…||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
At the moment django.contrib.redirects doesn't allow to disable particular redirect.
To do this I have do remove it completely or rename old_path to nonexistent. It neither clear nor correct.
Good solution is to add is_active bool field with default=True.
Change History (8)
comment:1 Changed 3 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Someday/Maybe
- Type changed from Uncategorized to New feature