From 58e7fd3db1ba06622b5e09e1bacbbb8a5608d37a Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 1 Feb 2008 10:23:35 +0100 Subject: [PATCH] * Don't let influences be edited in-line in the admin, this didn't work well yet. * Allow an Influence's result to be blank. --- influences/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influences/models.py b/influences/models.py index 2291d70..df1ba79 100644 --- a/influences/models.py +++ b/influences/models.py @@ -29,14 +29,14 @@ class Influence(models.Model): created = models.DateField(auto_now_add=1, verbose_name = _("Creation time")) modified = models.DateField(auto_now=1, verbose_name = _("Modification time")) - character = models.ForeignKey(Character, edit_inline=models.TABULAR, num_in_admin=3, core=True, verbose_name = _("Character")) + character = models.ForeignKey(Character, 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")) - result = models.TextField(verbose_name = _("Result")) + result = models.TextField(blank=True,verbose_name = _("Result")) def __str__(self): return self.summary -- 2.30.2