Hi,looking for a new web-project and right now I'm looking for model-i18n tool. Django-model-translation looks very decent, but I'm a bit worried about some accpects.So I got a question of sorts: will django-modeltranslation correctly work with custom field, that I inherit from 1) TextField 2) BleachField from django_bleach. Basicly, what should I be aware of, when I'm creating my custom field, inheriting like in either of those two cases? In other terms, what under-the-hood-twicks of dajngo-modeltranslation I should not interrapt, like what method not to override, etc.
If we clarify this here I'll be more than glad to update the docs in this regard, so everyone else, who'll get this question later, would find an answer in the docs.
Sincerely, Sergey Aganezov.
--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "django-modeltranslation" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an django-modeltrans...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an django-modeltranslation+unsub...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out
Hi Javi,thank you for a quick response!You're saying that it maps, does it mean that it creates n copies of given field, keeping the field type and all it's methods, widgets, etc in place, and just creates getter, setter, manager patching magic?
Also you said, that you are working with HtmlField inherited form TextField without major issues, so now I have to ask: how much customization have you added to you HtmlField (custom widget, custom methods, etc) and hom many of them a preserved without troubles?
Also, what kind of non-major issues do you have working with custom field using modeltranslation? Can you specify a bit more details?
Sincerely, Sergey Aganezov.
On Wednesday, November 27, 2013 2:54:40 AM UTC-5, lasi zoillo wrote:2013/11/27 Sergey Aganezov <sergeyag...@gmail.com>
Hi,looking for a new web-project and right now I'm looking for model-i18n tool. Django-model-translation looks very decent, but I'm a bit worried about some accpects.So I got a question of sorts: will django-modeltranslation correctly work with custom field, that I inherit from 1) TextField 2) BleachField from django_bleach. Basicly, what should I be aware of, when I'm creating my custom field, inheriting like in either of those two cases? In other terms, what under-the-hood-twicks of dajngo-modeltranslation I should not interrapt, like what method not to override, etc.Modeltranslation proxies translations fields to real ones. We are working with a HtmlField inherited from TextField without mayor issues.Regards,Javi--If we clarify this here I'll be more than glad to update the docs in this regard, so everyone else, who'll get this question later, would find an answer in the docs.
Sincerely, Sergey Aganezov.
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "django-modeltranslation" sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an django-modeltranslation+unsub...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out
--
Sie erhalten diese Nachricht, weil Sie Mitglied der Google Groups-Gruppe "django-modeltranslation" sind.