Skip to content
Extraits de code Groupes Projets
Valider 270c78a3 rédigé par Arnaud Fabre's avatar Arnaud Fabre
Parcourir les fichiers

adds total_for, total_abstain, total_against fields to a Proposal

parent 8cdd2aec
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('representatives_votes', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='proposal',
name='total_abstain',
field=models.IntegerField(default=0),
preserve_default=False,
),
migrations.AddField(
model_name='proposal',
name='total_against',
field=models.IntegerField(default=0),
preserve_default=False,
),
migrations.AddField(
model_name='proposal',
name='total_for',
field=models.IntegerField(default=0),
preserve_default=False,
),
]
......@@ -12,13 +12,14 @@ class Dossier(models.Model):
class Proposal(models.Model):
dossier = models.ForeignKey(Dossier)
title = models.CharField(max_length=500)
description = models.TextField()
reference = models.CharField(max_length=200)
datetime = models.DateTimeField()
total_abstain = models.IntegerField()
total_against = models.IntegerField()
total_for = models.IntegerField()
class Vote(models.Model):
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter