I am developing an multilingual application using Django. One part is to select the type of something using the ContentType API.
As describe in the doc, the ContentType object name is extracted from the verbose_name.
In my case the verbose_name is translated using xgettext_lazy
but as it is copyied in the database during the syncdb
, there is no translation for ContentType, the verbose_name is not translated.
I would like to be able to change the way the foreign key is displayed in a form.
Do you have any idea of how I can do that ?
Cheers,
Natim
Finally here is the solution I found :