OdifYltsaeb / django-multilingual

Automatically exported from code.google.com/p/django-multilingual
MIT License
0 stars 0 forks source link

verbose_name VS short_description #116

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create model with translated field (e.g 
my_title=models.CharField(u'Поле'))
2. In django-admin make ModelAdmin with list_display=('my_title',)
3. Make all stuff required to update and run your app
4. Enter your Admin Model list
5. Observe the header of the list

What is the expected output? What do you see instead?
Expected: u'Поле' 
Actual result: 'My title'

Same bug for 'my_title_en', 'my_title_ru', 'my_title_any'...
EXCEPT 'get_my_title'.

Please use labels and text to provide additional information.
As I see in code, only 'get_my_title' getter uses verbose_name for
translated field title.

All other getters uses short_description instead (and this prop isn't standard)

----
I suggest to provide all getters with verbose_name ;-)

Original issue reported on code.google.com by kottena...@gmail.com on 2 Mar 2010 at 1:16