From 414ed4403d05d537a0d2c5071faa497651ea139c Mon Sep 17 00:00:00 2001
From: Ernesto Rico Schmidt <ernesto@helsinki.at>
Date: Wed, 16 Feb 2022 23:23:02 -0400
Subject: [PATCH] Migrate Category, FundingCategory, MusicFocus, Topic and Type
 models

---
 program/migrations/0012_rename_fields.py | 58 ++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 program/migrations/0012_rename_fields.py

diff --git a/program/migrations/0012_rename_fields.py b/program/migrations/0012_rename_fields.py
new file mode 100644
index 00000000..cf4d70ea
--- /dev/null
+++ b/program/migrations/0012_rename_fields.py
@@ -0,0 +1,58 @@
+# Generated by Django 3.2.11 on 2022-02-17 02:11
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('program', '0011_link'),
+    ]
+
+    operations = [
+        migrations.AlterModelOptions(
+            name='category',
+            options={'ordering': ('name',), 'verbose_name': 'Category', 'verbose_name_plural': 'Categories'},
+        ),
+        migrations.AlterModelOptions(
+            name='fundingcategory',
+            options={'ordering': ('name',), 'verbose_name': 'Funding Category', 'verbose_name_plural': 'Funding Categories'},
+        ),
+        migrations.AlterModelOptions(
+            name='musicfocus',
+            options={'ordering': ('name',), 'verbose_name': 'Music focus', 'verbose_name_plural': 'Music focus'},
+        ),
+        migrations.AlterModelOptions(
+            name='topic',
+            options={'ordering': ('name',), 'verbose_name': 'Topic', 'verbose_name_plural': 'Topics'},
+        ),
+        migrations.AlterModelOptions(
+            name='type',
+            options={'ordering': ('name',), 'verbose_name': 'Type', 'verbose_name_plural': 'Types'},
+        ),
+        migrations.RenameField(
+            model_name='category',
+            old_name='category',
+            new_name='name',
+        ),
+        migrations.RenameField(
+            model_name='fundingcategory',
+            old_name='fundingcategory',
+            new_name='name',
+        ),
+        migrations.RenameField(
+            model_name='musicfocus',
+            old_name='focus',
+            new_name='name',
+        ),
+        migrations.RenameField(
+            model_name='topic',
+            old_name='topic',
+            new_name='name',
+        ),
+        migrations.RenameField(
+            model_name='type',
+            old_name='type',
+            new_name='name',
+        ),
+    ]
-- 
GitLab