Commit fedbeb3b authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Add translation for courses models

parent e233fb73
from modeltranslation.translator import register, TranslationOptions
from .models import Course, Lesson, Unit
@register(Course)
class CourseTranslationOptions(TranslationOptions):
fields = ('slug', 'name', 'intro_video', 'application',
'requirement', 'abstract', 'structure', 'workload',
'course_load', 'pronatec', 'thumbnail', 'home_thumbnail',
'min_percent_to_complete')
@register(Lesson)
class LessonTranslationOptions(TranslationOptions):
fields = ('desc', 'name', 'notes', 'slug', 'thumbnail')
@register(Unit)
class UnitTranslationOptions(TranslationOptions):
fields = ('title', 'video', 'side_notes', 'chat_room')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment