You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any news on this?
Currently I am searching for a solution how to translate django-filer fields (reusing existing fields) and I have 2 options:
a) use a metaclass hack in #38 and create custom models for all models I need, then override a bunch of admin stuff, etc.
b) fork django-filer, make everything translatable by default and hope that I end up with something pull-request worthy :)
What would be your recommendations in this case?
Nope, I haven't looked deeper into this. It's a very hard topic, because removing a fields is not supported by Django at all. For third party apps, this would also break any ORM .filter(..) call on those removed fields.
Currently there is a discussion about overriding abstract-model fields on the django-developers mailinglist, which also raises interesting points.
As for recommendations, you can go either way. My personal favorite would be persuading the django-filer author if he has interest in receiving multilingual support for his application. Since you're willing to do the work, this has a higher chance of getting accepted.
Based on the reports #38 and #39.
It's not possible to redefine fields as translatable if they also exist on the shared model.
The following could be improved:
django.db.model.Options.add_field()
.title = TranslatedField(redefine_field=True)
The text was updated successfully, but these errors were encountered: