From b981d8c65673adff4a0ff33869d871ec7a02c906 Mon Sep 17 00:00:00 2001 From: Klafyvel Date: Wed, 24 Jan 2018 10:37:49 +0100 Subject: [PATCH] Fix de la migration initiale de Vote --- vote/migrations/0001_initial.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vote/migrations/0001_initial.py b/vote/migrations/0001_initial.py index 1692395..70e1f19 100644 --- a/vote/migrations/0001_initial.py +++ b/vote/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 2.0.1 on 2018-01-22 13:24 +# Generated by Django 2.0.1 on 2018-01-24 09:37 from django.conf import settings import django.core.validators @@ -12,8 +12,8 @@ class Migration(migrations.Migration): dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), + ('content', '0002_content_category'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('content', '0001_initial'), ] operations = [ @@ -32,6 +32,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vote', models.IntegerField(validators=[django.core.validators.MaxValueValidator(5), django.core.validators.MinValueValidator(0)])), ('content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='content.Content')), + ('poll', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='vote.Poll')), ('votant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ),