#25336 closed Bug (wontfix)
activate current language when clicking view_on_site button in Django Post admin page
Reported by: | Zoe | Owned by: | Zoe |
---|---|---|---|
Component: | contrib.admin | Version: | 1.7 |
Severity: | Normal | Keywords: | multiple languages, post admin, view on site |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The issue is in single post admin page, when the post has multi-language, the view_on_site button always navigate to the default language no matter what language the obj is using. The solution is simple to activate the current language and create a url with current language code instead of default language always.
Attachments (1)
Change History (5)
by , 9 years ago
Attachment: | options.py added |
---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 by , 9 years ago
Resolution: | fixed → wontfix |
---|
As discussed on the pull request. It's not clear to me that this can't be solved in a custom get_absolute_url()
method. Assuming that the model instance has a language_code
doesn't seem like a good idea. Please reopen with more details if you find that it can't be solved without making a change to Django. Thanks!
the solution is between line 273-278