from modeltranslation.translator import translator, TranslationOptions

from apps.enrollment.courses.models.course import CourseEntity, CourseDescription


class CourseEntityTranslationOptions(TranslationOptions):
    fields = ('name', )
    fallback_languages = {'default': ('pl',)}


translator.register(CourseEntity, CourseEntityTranslationOptions)


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = ('description',)


translator.register(CourseDescription, CourseDescriptionTranslationOptions)

ba8b7b813ce60cc5767aa9962901c18d0847fc4e
<mask token>


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = 'description',


<mask token>

<mask token>


class CourseEntityTranslationOptions(TranslationOptions):
    <mask token>
    <mask token>


<mask token>


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = 'description',


<mask token>

<mask token>


class CourseEntityTranslationOptions(TranslationOptions):
    fields = 'name',
    fallback_languages = {'default': ('pl',)}


<mask token>


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = 'description',


<mask token>

from modeltranslation.translator import translator, TranslationOptions
from apps.enrollment.courses.models.course import CourseEntity, CourseDescription


class CourseEntityTranslationOptions(TranslationOptions):
    fields = 'name',
    fallback_languages = {'default': ('pl',)}


translator.register(CourseEntity, CourseEntityTranslationOptions)


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = 'description',


translator.register(CourseDescription, CourseDescriptionTranslationOptions)

from modeltranslation.translator import translator, TranslationOptions

from apps.enrollment.courses.models.course import CourseEntity, CourseDescription


class CourseEntityTranslationOptions(TranslationOptions):
    fields = ('name', )
    fallback_languages = {'default': ('pl',)}


translator.register(CourseEntity, CourseEntityTranslationOptions)


class CourseDescriptionTranslationOptions(TranslationOptions):
    fields = ('description',)


translator.register(CourseDescription, CourseDescriptionTranslationOptions)
