Commit e8d75c73 authored by Matheus Miranda's avatar Matheus Miranda

Merge branch 'develop' into 'master'

Add translation for course models

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