Commit d2be7fff authored by Aymeric Barantal's avatar Aymeric Barantal

doc for Argumentary and __unicode__ repr

parent 39efa37d
......@@ -2,7 +2,7 @@ from django.db import models
class Contact(models.Model):
"""Contact model. Person to be call by users"""
"""Contact model. Person to be called by users"""
id = models.AutoField(primary_key=True)
first_name = models.CharField(max_length=64)
last_name = models.CharField(max_length=64)
......@@ -28,11 +28,15 @@ class Campaign(models.Model):
class Argumentary(models.Model):
"""Argumentary in a given language for a campaign"""
id = models.AutoField(primary_key=True)
campaign = models.ForeignKey(Campaign)
lang = models.CharField(max_length=255)
text = models.TextField(null=True)
def __unicode__(self):
return 'Argumentary in %s for %s' % (self.lang, self.campaign.title)
class CampaignContact(models.Model):
"""List contact related to a campaign with a given weight"""
......
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