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
46c6e8b0
Commit
46c6e8b0
authored
Apr 21, 2021
by
Glaucia S. Santos
Browse files
New translation fields
parent
d44a39eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
courses/migrations/0025_auto_20210421_0106.py
courses/migrations/0025_auto_20210421_0106.py
+29
-0
courses/translation.py
courses/translation.py
+1
-1
No files found.
courses/migrations/0025_auto_20210421_0106.py
0 → 100644
View file @
46c6e8b0
# Generated by Django 2.2.20 on 2021-04-21 04:06
import
courses.course_material.models
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'courses'
,
'0024_auto_20210416_1715'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'file'
,
name
=
'file_en'
,
field
=
models
.
FileField
(
null
=
True
,
upload_to
=
courses
.
course_material
.
models
.
get_upload_path
),
),
migrations
.
AddField
(
model_name
=
'file'
,
name
=
'file_es'
,
field
=
models
.
FileField
(
null
=
True
,
upload_to
=
courses
.
course_material
.
models
.
get_upload_path
),
),
migrations
.
AddField
(
model_name
=
'file'
,
name
=
'file_pt_br'
,
field
=
models
.
FileField
(
null
=
True
,
upload_to
=
courses
.
course_material
.
models
.
get_upload_path
),
),
]
courses/translation.py
View file @
46c6e8b0
...
...
@@ -26,4 +26,4 @@ class UnitTranslationOptions(TranslationOptions):
@
register
(
File
)
class
UnitTranslationOptions
(
TranslationOptions
):
fields
=
(
'title'
,)
\ No newline at end of file
fields
=
(
'title'
,
'file'
)
\ No newline at end of file
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