summaryrefslogtreecommitdiff
path: root/program/migrations/0012_add_language.py
blob: 21d3c4f71c93b921ce374c6694d1b217f00ce002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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),
        ),
    ]