summaryrefslogtreecommitdiff
path: root/program/migrations
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-02-24 22:26:27 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-02-24 22:26:27 (GMT)
commita1064414914efd53ef1c44ee12392fef8a0c0b0f (patch)
tree60588ab162cdd607f5236d73750e4d3d6217d793 /program/migrations
parent1b2eb2aea52e754ad167c63259eec80e35497dfa (diff)
parentf7f4a5d5378b37c32b64bf0f71d0a438fd5d19d8 (diff)
Merge branch 'add-languages' into stable
Diffstat (limited to 'program/migrations')
-rw-r--r--program/migrations/0012_add_language.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/program/migrations/0012_add_language.py b/program/migrations/0012_add_language.py
new file mode 100644
index 0000000..21d3c4f
--- /dev/null
+++ b/program/migrations/0012_add_language.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('program', '0011_programslot_remove_is_active'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Language',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('slug', models.SlugField(unique=True, max_length=32, verbose_name='Slug')),
+ ('name', models.CharField(max_length=32, verbose_name='Name')),
+ ('native_name', models.CharField(max_length=32, verbose_name='Native Name')),
+ ],
+ options={
+ 'ordering': ('language',),
+ 'verbose_name': 'Language',
+ 'verbose_name_plural': 'Languages',
+ },
+ ),
+ migrations.AddField(
+ model_name='show',
+ name='language',
+ field=models.ManyToManyField(related_name='language', verbose_name='Language', to='program.Language', blank=True),
+ ),
+ ]