infoportugal/wagtail-modeltranslation

Right way of importing wagtail-modeltranslation

Closed this issue · 2 comments

rokdd commented

I found at the documentation how to register models another import

from wagtail_modeltranslation.translation import TranslationOptions
from wagtail_modeltranslation.decorators import register

as on the start page:

from modeltranslation.translator import TranslationOptions
from modeltranslation.decorators import register

so what is right way to do it?

rokdd commented

Okay I guess for the future it is better to use the wagtail specific one, but thank you!