Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses
Commits
cb1f6446
Commit
cb1f6446
authored
Jul 08, 2021
by
Matheus Miranda
Browse files
Merge branch 'develop' into 'master'
Translate FlatPage model See merge request
!67
parents
11e237f1
5852b12d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
courses/translation.py
courses/translation.py
+6
-0
No files found.
courses/translation.py
View file @
cb1f6446
...
...
@@ -3,6 +3,7 @@ from .models import Course, Lesson, Unit, ProfessorMessage
from
.course_material.models
import
CourseMaterial
,
File
from
.stats.models
import
AccessibleArea
from
.certification.models
import
CertificateTemplate
from
django.contrib.flatpages.models
import
FlatPage
@
register
(
Course
)
...
...
@@ -48,3 +49,8 @@ class CertificateTemplateTranslationOptions(TranslationOptions):
fields
=
(
'role'
,
'name'
,
'second_role'
,
'second_name'
,
'cert_logo'
,
'base_logo'
,
'signature'
,
'second_signature'
,
'site_logo'
,
'organization_name'
,
'text'
)
@
register
(
FlatPage
)
class
FlatPageTranslationOptions
(
TranslationOptions
):
fields
=
(
'url'
,
'title'
,
'content'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment