0001_initial.py 1.79 KB
Newer Older
luxcem's avatar
luxcem committed
1
2
3
4
5
6
7
8
9
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
10
        ('representatives', '0007_auto_20150323_1017'),
luxcem's avatar
luxcem committed
11
12
13
14
    ]

    operations = [
        migrations.CreateModel(
15
            name='MGroup',
luxcem's avatar
luxcem committed
16
17
            fields=[
                ('group_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='representatives.Group')),
18
                ('active', models.BooleanField(default=False)),
luxcem's avatar
luxcem committed
19
20
21
22
23
24
            ],
            options={
            },
            bases=('representatives.group',),
        ),
        migrations.CreateModel(
25
            name='MMandate',
luxcem's avatar
luxcem committed
26
27
            fields=[
                ('mandate_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='representatives.Mandate')),
28
29
                ('active', models.BooleanField(default=False)),
                ('mgroup', models.ForeignKey(to='legislature.MGroup')),
luxcem's avatar
luxcem committed
30
31
32
33
34
35
            ],
            options={
            },
            bases=('representatives.mandate',),
        ),
        migrations.CreateModel(
36
            name='MRepresentative',
luxcem's avatar
luxcem committed
37
38
            fields=[
                ('representative_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='representatives.Representative')),
39
                ('country', models.ForeignKey(to='representatives.Country', null=True)),
luxcem's avatar
luxcem committed
40
41
42
43
44
            ],
            options={
            },
            bases=('representatives.representative',),
        ),
45
46
47
48
49
50
        migrations.AddField(
            model_name='mmandate',
            name='mrepresentative',
            field=models.ForeignKey(to='legislature.MRepresentative'),
            preserve_default=True,
        ),
luxcem's avatar
luxcem committed
51
    ]