KristianOellegaard / django-hvad

Painless translations in django, using the regular ORM. Integrates easily into existing projects and apps. Easy convertible from django-multilingual-ng.
https://github.com/KristianOellegaard/django-hvad
Other
533 stars 128 forks source link

Document TranslatableInlineModelAdmin (and Stacked and Tabular) #54

Open rasca opened 12 years ago

rasca commented 12 years ago

In the Admin section we should document this classes.

KristianOellegaard commented 12 years ago

I definitely agree - but I did not have the time to do so yet - if it is something you would be interested in doing, I would love to merge it in.

Kind regards,

Kristian

kimus commented 11 years ago

:+1: Some examples should be great. I can't even understand how normal TranslatableModel should work. I see the language tabs, but adding a new TranslatableModel in the admin wrting something in the 'Shared Fields' for the first tab and then click on the second tab (another language) will clear all fields and it shouldn't. Only after the first save that's it seems to work more or less. TranslatableInlineModelAdmin (and Stacked and Tabular) I can't figure out how it works. The Inline model shouldn't be the TranslatableModel but the [model]_translations table... I think!? It's just me that needs more input on this? :-(

spectras commented 10 years ago

I might be wrong, but I understand from the code that TranslatableInlineModelAdmin intent is to inline translatable models in the admin of another related translatable model instance, the same way it works with Django admin.

Unfortunately I don't use Django admin in my project so I won't be really helpful with that specific part of hvad :(

spectras commented 9 years ago

No change, but for future references, I will address some of the questions of @kimus :