Opened 18 years ago
Closed 14 years ago
#4238 closed (wontfix)
django.views.generic.simple should have a method to redirect to the absolute_url() of an object
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | Keywords: | ||
Cc: | ivanov.maxim@… | Triage Stage: | Design decision needed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Would be a handy addition to the generic views which would allow you to redirect a URL to the get_absolute_url of an object.
This can be used in many situations, the most common being URL changes.
'/myoldurl/(?P<id>[0-9]+)/', 'django.views.generic.simple.redirect_to_absolute_url', {'pk': '%(id)s'}
Attachments (1)
Change History (5)
comment:1 by , 18 years ago
Summary: | [enhancement] django.views.generic.simple.redirect_to_absolute_url → django.views.generic.simple should have a method to redirect to the absolute_url() of an object |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
comment:3 by , 16 years ago
Cc: | added |
---|
comment:4 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Not clear this is a common enough use-case to require a function in Django, particularly given the function itself is so short to write.
Note:
See TracTickets
for help on using tickets.
Sounds like a good idea - want to try and write up an implementation?