Commit f22df529 authored by Arnaud Fabre's avatar Arnaud Fabre

votes migrations

parent 89c72d11
......@@ -14,11 +14,13 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='MemopolDossier',
fields=[
('dossier_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='representatives_votes.Dossier')),
('name', models.CharField(max_length=1000)),
('description', models.TextField(blank=True)),
('dossier', models.OneToOneField(parent_link=True, related_name='extra', primary_key=True, serialize=False, to='representatives_votes.Dossier')),
('dossier_reference', models.CharField(max_length=200)),
('name', models.CharField(default=b'', max_length=1000, blank=True)),
('description', models.TextField(default=b'', blank=True)),
],
options={
'abstract': False,
},
bases=('representatives_votes.dossier',),
),
......@@ -32,9 +34,6 @@ class Migration(migrations.Migration):
('weight', models.IntegerField(default=0)),
('proposal', models.OneToOneField(related_name='recommendation', to='representatives_votes.Proposal')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='MemopolVote',
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import core.fields
class Migration(migrations.Migration):
dependencies = [
('representatives_votes', '0002_auto_20150616_1249'),
('votes', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='memopoldossier',
name='dossier_ptr',
),
migrations.AddField(
model_name='memopoldossier',
name='dossier',
field=core.fields.AutoOneToOneField(primary_key=True, default=0, serialize=False, to='representatives_votes.Dossier'),
preserve_default=False,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('votes', '0002_auto_20150616_1516'),
]
operations = [
migrations.AlterField(
model_name='memopoldossier',
name='description',
field=models.TextField(default=b'', blank=True),
preserve_default=True,
),
migrations.AlterField(
model_name='memopoldossier',
name='name',
field=models.CharField(default=b'', max_length=1000, blank=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import core.fields
class Migration(migrations.Migration):
dependencies = [
('votes', '0003_auto_20150616_1523'),
]
operations = [
migrations.AlterField(
model_name='memopoldossier',
name='dossier',
field=core.fields.AutoOneToOneField(parent_link=True, related_name='extra', primary_key=True, serialize=False, to='representatives_votes.Dossier'),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('votes', '0004_auto_20150616_1527'),
]
operations = [
migrations.AddField(
model_name='memopoldossier',
name='dossier_reference',
field=models.CharField(default='', max_length=200),
preserve_default=False,
),
migrations.AlterField(
model_name='memopoldossier',
name='dossier',
field=models.OneToOneField(parent_link=True, related_name='extra', primary_key=True, serialize=False, to='representatives_votes.Dossier'),
preserve_default=True,
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment