#458 closed defect (wontfix)
"View on site" doesn't link to model's get_absoulte_url() method
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.1-beta |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
"View on site" button doesn't link to model's get_absolute_url() method, but shows something like '/r/12/1/'. It could be observed on the generic Users model.
Change History (6)
comment:1 by , 19 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 19 years ago
As of [620], the "/r" handler is automatically added to the admin URLconf whenever you do "django-admin startproject".
comment:3 by , 19 years ago
This is no longer the case, is it? At least not on the magic-removal branch.
Why isn't this mapping [source:/django/branches/magic-removal/django/contrib/admin/urls.py admin/urls.py] ?
comment:4 by , 15 years ago
milestone: | → 1.1 |
---|---|
Resolution: | wontfix |
Status: | closed → reopened |
Version: | → 1.1-beta-1 |
it is not working.I have done debug=False also
comment:5 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
If you are having difficulties, please ask on Django-users, rather than presumptively opening a 4 year old ticket.
This is not a bug, it's a redirect URL. Put in your main urls.py the line
And as long as DEBUG is turned *off* in your settings.main you'll be redirected to the correct item.