aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/orm/migrations/0003_customimagepackage.py
blob: b027f661375dfa9a08c7eafb1fafff8d78439d1f (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
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('orm', '0002_customimagerecipe'),
    ]

    operations = [
        migrations.CreateModel(
            name='CustomImagePackage',
            fields=[
                ('package_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='orm.Package')),
                ('recipe_appends', models.ManyToManyField(related_name='appends_set', to='orm.CustomImageRecipe')),
                ('recipe_excludes', models.ManyToManyField(related_name='excludes_set', to='orm.CustomImageRecipe')),
                ('recipe_includes', models.ManyToManyField(related_name='includes_set', to='orm.CustomImageRecipe')),
            ],
            bases=('orm.package',),
        ),
    ]