0001_initial.py 2.19 KB
Newer Older
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('representatives', '0020_rep_unique_slug_remove_remoteid'),
        ('representatives_votes', '0012_document'),
        ('representatives_positions', '0007_remove_positionscore'),
        ('representatives_recommendations', '0010_remove_views'),
        ('memopol_themes', '0003_remove_themescore'),
        ('memopol_settings', '0002_score_settings'),
    ]

    operations = [
        migrations.CreateModel(
            name='DossierScore',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('score', models.FloatField()),
                ('dossier', models.ForeignKey(to='representatives_votes.Dossier')),
                ('representative', models.ForeignKey(related_name='dossier_scores', to='representatives.Representative')),
            ],
        ),
        migrations.CreateModel(
            name='PositionScore',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('score', models.FloatField()),
                ('position', models.OneToOneField(related_name='position_score', to='representatives_positions.Position')),
            ],
        ),
        migrations.CreateModel(
            name='RepresentativeScore',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('score', models.FloatField()),
                ('representative', models.OneToOneField(related_name='representative_score', to='representatives.Representative')),
            ],
        ),
        migrations.CreateModel(
            name='VoteScore',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('score', models.FloatField()),
                ('vote', models.OneToOneField(related_name='vote_score', to='representatives_votes.Vote')),
            ],
        ),
    ]