From: Matthijs Kooijman Date: Sun, 27 Jan 2008 15:40:54 +0000 (+0100) Subject: * Add a summary field to Influence. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6ae0167b390866b52721793750bb4ae6874c5110;p=matthijs%2Fprojects%2Fxerxes.git * Add a summary field to Influence. --- diff --git a/influences/models.py b/influences/models.py index 846410f..b3d023c 100644 --- a/influences/models.py +++ b/influences/models.py @@ -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')