0001_initial.py 905 Bytes
Newer Older
Arnaud Fabre's avatar
clean  
Arnaud Fabre 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', '0003_auto_20150702_1827'),
Arnaud Fabre's avatar
clean  
Arnaud Fabre committed
11
12
13
14
15
16
    ]

    operations = [
        migrations.CreateModel(
            name='MemopolRepresentative',
            fields=[
Jamesie Pic's avatar
Quality    
Jamesie Pic committed
17
18
                ('representative_ptr', models.OneToOneField(parent_link=True, auto_created=True,
                                                            primary_key=True, serialize=False, to='representatives.Representative')),
Arnaud Fabre's avatar
clean  
Arnaud Fabre committed
19
                ('score', models.IntegerField(default=0)),
Jamesie Pic's avatar
Quality    
Jamesie Pic committed
20
21
                ('country', models.ForeignKey(
                    to='representatives.Country', null=True)),
Arnaud Fabre's avatar
clean  
Arnaud Fabre committed
22
            ],
23
24
25
26
            options={
                'abstract': False,
            },
            bases=('representatives.representative',),
Arnaud Fabre's avatar
clean  
Arnaud Fabre committed
27
28
        ),
    ]