diff options
author | Christian Pointner <equinox@helsinki.at> | 2021-02-17 13:33:49 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2021-02-17 13:33:49 (GMT) |
commit | 8fa0d03d3509290ea6f523c2223966b1a2b73488 (patch) | |
tree | be1ce4416b7edc8cb51a096d0990546b5c874057 /program/migrations | |
parent | 1b2eb2aea52e754ad167c63259eec80e35497dfa (diff) |
add language to model
Diffstat (limited to 'program/migrations')
-rw-r--r-- | program/migrations/0012_add_language.py | 32 |
1 files changed, 32 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..59be77d --- /dev/null +++ b/program/migrations/0012_add_language.py @@ -0,0 +1,32 @@ +# -*- 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)), + ('name', models.CharField(max_length=32, verbose_name='Language')), + ('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), + ), + ] |