Rename Character.contact to other_contacts.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 13 Jan 2009 17:14:11 +0000 (18:14 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 13 Jan 2009 17:14:11 +0000 (18:14 +0100)
This prepares for allowing other characters to be specified as contacts.

SQL: ALTER TABLE `influences_influence` CHANGE `contact` `other_contacts` VARCHAR( 255 ) NOT NULL AFTER `character_contact_id` ;

influences/models.py

index 9ba3f3cd4689eaf8e7e633e3a0337bc875f26780..8478ecc0f728e493f6122797939d9a46300d706b 100644 (file)
@@ -46,7 +46,7 @@ class Influence(models.Model):
     modified    = models.DateField(auto_now=1, verbose_name = _("Modification time"))
     
     initiator   = models.ForeignKey(Character, verbose_name = _("Initiator"), related_name='initiated_influences')
-    contact     = models.CharField(max_length=255, verbose_name = _("Contact Name"))
+    other_contacts = models.CharField(max_length=255, blank = True, verbose_name = _("Other Contacts"))
     summary     = models.CharField(max_length=255, verbose_name = _("Summary"))
     description = models.TextField(verbose_name = _("Description"))
     todo        = models.TextField(verbose_name = _("Todo"))