Commit 9614b0b5 authored by Aymeric Barantal's avatar Aymeric Barantal

blank is not null

parent 704df7f2
......@@ -31,6 +31,7 @@ class Argumentary(models.Model):
id = models.AutoField(primary_key=True)
campaign_id = models.ForeignKey(Campaign)
lang = models.CharField(max_length=255)
text = models.TextField(null=True)
class CampaignContact(models.Model):
......
......@@ -7,7 +7,7 @@ class Organization(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=64)
sip_key = models.CharField(max_length=255)
users = models.ForeignKey(User, blank=True)
users = models.ForeignKey(User, null=True, blank=True)
def __unicode__(self):
return self.name
......@@ -20,7 +20,7 @@ class Group(models.Model):
name = models.CharField(max_length=64)
type = models.CharField(max_length=255, blank=True)
media = models.CharField(max_length=255, blank=True)
contacts = models.ManyToManyField(Contact)
contacts = models.ManyToManyField(Contact, null=True, blank=True)
def __unicode__(self):
return self.name
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