Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
swp-unisport
team-warumkeinrust
Backend
Commits
ccd0e01d
Commit
ccd0e01d
authored
3 years ago
by
borzechof99
Browse files
Options
Downloads
Patches
Plain Diff
Adhere to Linter and Formatter
parent
d7a8cd05
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unisportomat/quiz/migrations/0006_auto_20210612_1230.py
+13
-13
13 additions, 13 deletions
unisportomat/quiz/migrations/0006_auto_20210612_1230.py
unisportomat/quiz/translation.py
+10
-0
10 additions, 0 deletions
unisportomat/quiz/translation.py
with
23 additions
and
13 deletions
unisportomat/quiz/migrations/0006_auto_20210612_1230.py
+
13
−
13
View file @
ccd0e01d
...
@@ -6,38 +6,38 @@ from django.db import migrations, models
...
@@ -6,38 +6,38 @@ from django.db import migrations, models
class
Migration
(
migrations
.
Migration
):
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
dependencies
=
[
(
'
quiz
'
,
'
0005_merge_20210602_1355
'
),
(
"
quiz
"
,
"
0005_merge_20210602_1355
"
),
]
]
operations
=
[
operations
=
[
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
calltomove
'
,
model_name
=
"
calltomove
"
,
name
=
'
text_de
'
,
name
=
"
text_de
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
calltomove
'
,
model_name
=
"
calltomove
"
,
name
=
'
text_en
'
,
name
=
"
text_en
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
knowledgesnack
'
,
model_name
=
"
knowledgesnack
"
,
name
=
'
text_de
'
,
name
=
"
text_de
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
knowledgesnack
'
,
model_name
=
"
knowledgesnack
"
,
name
=
'
text_en
'
,
name
=
"
text_en
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
question
'
,
model_name
=
"
question
"
,
name
=
'
text_de
'
,
name
=
"
text_de
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
migrations
.
AddField
(
migrations
.
AddField
(
model_name
=
'
question
'
,
model_name
=
"
question
"
,
name
=
'
text_en
'
,
name
=
"
text_en
"
,
field
=
models
.
TextField
(
null
=
True
),
field
=
models
.
TextField
(
null
=
True
),
),
),
]
]
This diff is collapsed.
Click to expand it.
unisportomat/quiz/translation.py
+
10
−
0
View file @
ccd0e01d
...
@@ -21,6 +21,11 @@ class QuestionTranslationOptions(TranslationOptions):
...
@@ -21,6 +21,11 @@ class QuestionTranslationOptions(TranslationOptions):
@register
(
CallToMove
)
@register
(
CallToMove
)
class
CallToMoveTranslationOptions
(
TranslationOptions
):
class
CallToMoveTranslationOptions
(
TranslationOptions
):
"""
Translations for CallToMove-model. Only the text of the call to move needs to be translated.
A German Translation is Required.
"""
fields
=
(
"
text
"
,)
fields
=
(
"
text
"
,)
required_languages
=
(
"
de
"
,)
required_languages
=
(
"
de
"
,)
fallback_values
=
(
"
No Translation for this Field
"
,)
fallback_values
=
(
"
No Translation for this Field
"
,)
...
@@ -28,6 +33,11 @@ class CallToMoveTranslationOptions(TranslationOptions):
...
@@ -28,6 +33,11 @@ class CallToMoveTranslationOptions(TranslationOptions):
@register
(
KnowledgeSnack
)
@register
(
KnowledgeSnack
)
class
KnowledgeSnackTranslationOptions
(
TranslationOptions
):
class
KnowledgeSnackTranslationOptions
(
TranslationOptions
):
"""
Translations for KnowledgeSnack-model. Only the text of the knowledge snack needs to be translated.
A German Translation is Required.
"""
fields
=
(
"
text
"
,)
fields
=
(
"
text
"
,)
required_languages
=
(
"
de
"
,)
required_languages
=
(
"
de
"
,)
fallback_values
=
(
"
No Translation for this Field
"
,)
fallback_values
=
(
"
No Translation for this Field
"
,)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment