-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1047 add default values for additional input for options
* prepare option model to contain default_text * add default_text to imports, mixins, option and export serializer * add migrations * add translations * insert Tabs structure for display default text values in EditOption component
- Loading branch information
Showing
16 changed files
with
2,958 additions
and
1,738 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
rdmo/options/migrations/0036_option_default_text_lang1_option_default_text_lang2_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.13 on 2024-07-11 11:41 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('options', '0035_alter_help_text_and_set_default'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='option', | ||
name='default_text_lang1', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for this option (in the primary language).', verbose_name='Default text value (primary)'), | ||
), | ||
migrations.AddField( | ||
model_name='option', | ||
name='default_text_lang2', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for this option (in the secondary language).', verbose_name='Default text value (secondary)'), | ||
), | ||
migrations.AddField( | ||
model_name='option', | ||
name='default_text_lang3', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for this option (in the tertiary language).', verbose_name='Default text value (tertiary)'), | ||
), | ||
migrations.AddField( | ||
model_name='option', | ||
name='default_text_lang4', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for this option (in the quaternary language).', verbose_name='Default text value (quaternary)'), | ||
), | ||
migrations.AddField( | ||
model_name='option', | ||
name='default_text_lang5', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for this option (in the quinary language).', verbose_name='Default text value (quinary)'), | ||
), | ||
] |
38 changes: 38 additions & 0 deletions
38
rdmo/options/migrations/0037_alter_option_default_text_lang1_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 4.2.13 on 2024-07-11 12:17 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('options', '0036_option_default_text_lang1_option_default_text_lang2_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='option', | ||
name='default_text_lang1', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for the additional input of this option (in the primary language).', verbose_name='Default text value (primary)'), | ||
), | ||
migrations.AlterField( | ||
model_name='option', | ||
name='default_text_lang2', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for the additional input of this option (in the secondary language).', verbose_name='Default text value (secondary)'), | ||
), | ||
migrations.AlterField( | ||
model_name='option', | ||
name='default_text_lang3', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for the additional input of this option (in the tertiary language).', verbose_name='Default text value (tertiary)'), | ||
), | ||
migrations.AlterField( | ||
model_name='option', | ||
name='default_text_lang4', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for the additional input of this option (in the quaternary language).', verbose_name='Default text value (quaternary)'), | ||
), | ||
migrations.AlterField( | ||
model_name='option', | ||
name='default_text_lang5', | ||
field=models.TextField(blank=True, default='', help_text='The default text value for the additional input of this option (in the quinary language).', verbose_name='Default text value (quinary)'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ class Meta: | |
trans_fields = ( | ||
'text', | ||
'help', | ||
'default_text', | ||
'view_text' | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters