{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/a77bc5cb8b01e75ce65aac2ada7b3da1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a77bc5cb8b01e75ce65aac2ada7b3da1","url":"https://api.github.com/users/vitalie-schiopu","login":"vitalie-schiopu","id":1190502},"milestone":null,"assignee":null,"updated_at":"2011-11-12T16:15:49Z","labels":[],"closed_at":null,"comments":0,"url":"https://api.github.com/repos/robcharlwood/django-mothertongue/issues/5","body":"Hi, \r\n\r\nI’ve used this application for a website and after putting it in production I noticed a wrong behavior that might need a correction.\r\n\r\nThe website supports English and French, English being the default and setup language. I’ll illustrate the problem on the GenericPage model example. (http://packages.python.org/django-mothertongue/usage.html). I create an instance of that model from the admin page with the corresponding French translation. On the site the correct values are showed of the page depending on the browser settings or the url. I can also easily modify the content of the page from the admin site. My browser has English as the preferred language. Everything is fine at this point. Now a colleague, who has French locale set in his browser, connects to the admin site to modify the page I previously created. The interface is in French as expected, but when he gets to the change form of the GenericPage instance, both the original fields and the translation inline have the same values. If he saves the changes, the default English fields are overwritten as well as the inline. Then, if we configure another language, the Russian for example, the administrator who’ll have Russian locale will see the Russian values in the original form and two inlines, Russian and French, but never the English as expected. The only way to solve this is to always manually change the URL to English (en), losing the translated admin site, which is not very inconvenient and error prone. \r\n\r\nWould there be a quick fix to this? As the only thoughts I could think of was to in a way to override the ModelAdmin.change_view() to force the retrieval of the correct values or make some custom processing on the Middleware level.\r\n\r\nThanks in advance for any help.\r\n\r\nCheers, \r\n","html_url":"https://github.com/robcharlwood/django-mothertongue/issues/5","title":"Showing the translated value of a field in admin site instead of the original","number":5,"id":2217642,"created_at":"2011-11-12T16:15:49Z"},"action":"opened"}