* Add a summary field to Influence.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sun, 27 Jan 2008 15:40:54 +0000 (16:40 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sun, 27 Jan 2008 15:40:54 +0000 (16:40 +0100)
influences/models.py

index 846410f5cd2caf57daf2d7335fd58590cfb1896c..b3d023c4b30cc1944ff3ccb65d94b1c578ad14a2 100644 (file)
@@ -31,12 +31,13 @@ class Influence(models.Model):
     
     character   = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True, verbose_name = _("Character"))
     contact     = models.CharField(max_length=255, verbose_name = _("Contact"))
+    summary     = models.CharField(max_length=255, verbose_name = _("Summary"))
     description = models.TextField(verbose_name = _("Description"))
     status      = models.TextField(max_length=1, choices=STATUS_CHOICES, default='N', verbose_name = _("Status"))
     longterm    = models.BooleanField(default=False, verbose_name = _("Long term"))
 
     def __str__(self):
-        return self.description[0:10]
+        return self.summary
 
     class Admin:
         list_filter=('character', 'status', 'longterm')