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')