Skip to content

Commit

Permalink
Add migration
Browse files Browse the repository at this point in the history
  • Loading branch information
MizukiTemma committed Apr 3, 2024
1 parent 3b40715 commit bc5e0a8
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions integreat_cms/cms/migrations/0089_add_language_color.py
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",
),
),
]

0 comments on commit bc5e0a8

Please sign in to comment.