-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error adding translation for Injected Fields #1843
Comments
from modeltranslation.translator import translator, TranslationOptions
from mezzanine.pages.models import RichTextPage
class TranslatedInjectedPage(TranslationOptions):
fields = ('quote',),
translator.unregister(RichTextPage)
translator.register(RichTextPage, TranslatedInjectedPage) All fields and quote field transleted, content field NOT transleted. |
And just simple: from modeltranslation.translator import translator
from mezzanine.pages.translation import TranslatedRichTextPage
from mezzanine.pages.models import RichTextPage
translator.unregister(RichTextPage)
translator.register(RichTextPage, TranslatedRichTextPage) Doesn't works with error: |
I have a similar problem - running version from master, commit aea2e99 |
Me too |
same here, 4.3.0 stable. |
This is a bug of django-modeltranslation that never got addressed. One workaround would be to manually add translated fields using |
Following for this section of manual Translation for Injected Fields I'm trying to add translated extrafield for RichTextPage model:
settings.py
translation.py
and I get:
The text was updated successfully, but these errors were encountered: