Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.719 kb
from django.db import models
from django.utils.translation import ugettext_lazy as _
class AgendaVote(models.Model):
agenda = models.ForeignKey('Agenda')
vote = models.ForeignKey('laws.Vote')
score = models.FloatField(default=0.0)
reasoning = models.TextField(null=True,blank=True)
class Agenda(models.Model):
name = models.CharField(max_length=300,unique=True)
description = models.TextField(null=True,blank=True)
editors = models.ManyToManyField('auth.User')
votes = models.ManyToManyField('laws.Vote',through=AgendaVote)
class Meta:
verbose_name = _('Agenda')
verbose_name_plural = _('Agendas')
def __unicode__(self):
return "%s" %
Jump to Line
Something went wrong with that request. Please try again.