Commit 4ecd390c authored by Arnaud Fabre's avatar Arnaud Fabre

fix positions migrations

parent c05df265
......@@ -8,7 +8,7 @@ class Migration(migrations.Migration):
dependencies = [
('votes', '0003_auto_20150709_1601'),
('representatives', '0004_auto_20150709_1601'),
('legislature', '0002_memopolrepresentative_main_mandate'),
]
operations = [
......@@ -16,12 +16,12 @@ class Migration(migrations.Migration):
name='Position',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('datetime', models.DateTimeField()),
('datetime', models.DateField()),
('text', models.TextField()),
('link', models.URLField()),
('published', models.BooleanField(default=False)),
('dossier', models.ForeignKey(to='votes.MemopolDossier', null=True)),
('representative', models.ForeignKey(related_name='positions', to='representatives.Representative')),
('dossier', models.ForeignKey(blank=True, to='votes.MemopolDossier', null=True)),
('representative', models.ForeignKey(related_name='positions', to='legislature.MemopolRepresentative')),
],
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('positions', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='position',
name='datetime',
field=models.DateField(),
),
migrations.AlterField(
model_name='position',
name='representative',
field=models.ForeignKey(related_name='positions', to='legislature.MemopolRepresentative'),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('positions', '0002_auto_20150720_1217'),
]
operations = [
migrations.AlterField(
model_name='position',
name='dossier',
field=models.ForeignKey(blank=True, to='votes.MemopolDossier', null=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