-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/add-color-to-language-mo…
…del' into feature/add-color-to-language-model
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
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,62 @@ | ||
# Generated by Django 4.2.10 on 2024-04-03 08:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
""" | ||
Migration file to add color field to language model | ||
""" | ||
|
||
dependencies = [ | ||
("cms", "0088_rename_mt_related_fields"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="language", | ||
name="language_color", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("#FFBB78", "Mellow apricot"), | ||
("#2CA02C", "Forest green"), | ||
("#FF9896", "Rose"), | ||
("#C5B0D5", "Tropical violet"), | ||
("#FF4500", "Red"), | ||
("#FFA500", "Orange"), | ||
("#17157D", "Dark blue"), | ||
("#1F77B4", "Green blue"), | ||
("#FFD700", "Yellow"), | ||
("#008080", "Teal"), | ||
("#9EDAE5", "Arctic"), | ||
("#5894E3", "Azure"), | ||
("#17BECF", "Pacific blue"), | ||
("#FF6347", "Orange red"), | ||
("#98DF8A", "Light green"), | ||
("#9467BD", "Violet"), | ||
("#ADFF2F", "Lime"), | ||
("#E377C2", "Lavender"), | ||
("#8C564B", "Brown"), | ||
("#FFA07A", "Pink orange"), | ||
("#FFE4F0", "Pastel pink"), | ||
("#F0E68C", "Khaki"), | ||
("#BCBD22", "Yellow green"), | ||
("#800080", "Mauve"), | ||
("#BA55D3", "Purple"), | ||
("#DBDB8D", "Primrose"), | ||
("#4B5563", "Fiord"), | ||
("#C49C94", "Quicksand"), | ||
("#7F7F7F", "Grey"), | ||
("#26FCFF", "Aqua"), | ||
("#20B2AA", "Pine green"), | ||
("#FFDAB9", "Almond"), | ||
("#D62728", "Cherry"), | ||
], | ||
help_text="This is used to represent the color label of the chosen language", | ||
max_length=7, | ||
null=True, | ||
verbose_name="language color", | ||
), | ||
), | ||
] |