Allow Character.contacts to be empty.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 30 Jan 2009 20:34:13 +0000 (21:34 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 30 Jan 2009 20:34:13 +0000 (21:34 +0100)
influences/models.py

index 8f243f5b49de90f250e0949b7a2e98f958f513ff..089e2a37e6a54a7553fd25cedac5ebdd78736b03 100644 (file)
@@ -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):