Opened 17 years ago
Closed 17 years ago
#5394 closed (fixed)
REDIRECT_FIELD_NAME should be configurable
Reported by: | Owned by: | David Reynolds | |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | authorization, redirection, sprintsept14 | |
Cc: | david@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I think that it should be possible to set REDIRECT_FIELD_NAME in settings.py. For example it can be useful if I want to have url in another language than English. It is changed by the attached patch.
Attachments (5)
Change History (15)
by , 17 years ago
Attachment: | configurable-redirect-field-name.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 17 years ago
Needs documentation: | set |
---|---|
Patch needs improvement: | set |
Triage Stage: | Design decision needed → Accepted |
comment:3 by , 17 years ago
Owner: | changed from | to
---|
by , 17 years ago
Attachment: | configurable-redirect-field-name-2.diff added |
---|
Fixing as per Adrian's suggestion
comment:4 by , 17 years ago
Patch needs improvement: | unset |
---|
comment:6 by , 17 years ago
Cc: | added |
---|
This change to the docs only reflects the original, bad patch, not my updated patch.
I'll look at the doing the docs now.
comment:7 by , 17 years ago
Needs documentation: | unset |
---|
comment:8 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(forgot to mention effbot on irc helped massively with last patch)
comment:9 by , 17 years ago
Keywords: | sprintsept14 added |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:10 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
I agree that it should be configurable, but this is not "heavy" enough to merit a new setting. Instead, how about making the relevant auth views and decorators accept an optional
redirect_field
argument? Marking as "patch needs improvement" for that reason.