From bc5e0a89b27176aa802f89d95befda0980e8c3a3 Mon Sep 17 00:00:00 2001 From: MizukiTemma Date: Wed, 3 Apr 2024 10:15:02 +0200 Subject: [PATCH] Add migration --- .../cms/migrations/0089_add_language_color.py | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 integreat_cms/cms/migrations/0089_add_language_color.py diff --git a/integreat_cms/cms/migrations/0089_add_language_color.py b/integreat_cms/cms/migrations/0089_add_language_color.py new file mode 100644 index 0000000000..a37536a11d --- /dev/null +++ b/integreat_cms/cms/migrations/0089_add_language_color.py @@ -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", + ), + ), + ]