From: Matthijs Kooijman Date: Fri, 30 Jan 2009 20:34:13 +0000 (+0100) Subject: Allow Character.contacts to be empty. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=0659a435b24581c2c38d609231c14f61503273b7;hp=6beee1d40828f4baae6e40f0617e60af5c7ac036;p=matthijs%2Fprojects%2Fxerxes.git Allow Character.contacts to be empty. --- diff --git a/influences/models.py b/influences/models.py index 8f243f5..089e2a3 100644 --- a/influences/models.py +++ b/influences/models.py @@ -23,7 +23,7 @@ class Character(models.Model): name = models.CharField(max_length=255, verbose_name = _("Name")) status = models.CharField(max_length=2, choices=STATUS_CHOICES, default='N', verbose_name = _("Status")) player = models.ForeignKey(User, verbose_name = _("Player")) - contacts = models.ManyToManyField('self') + contacts = models.ManyToManyField('self', blank = True) type = models.CharField(max_length=2, choices=TYPE_CHOICES, verbose_name=_("Type")) def __unicode__(self):