From: Matthijs Kooijman Date: Fri, 1 Feb 2008 09:23:35 +0000 (+0100) Subject: * Don't let influences be edited in-line in the admin, this didn't work well yet. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=58e7fd3db1ba06622b5e09e1bacbbb8a5608d37a;p=matthijs%2Fprojects%2Fxerxes.git * 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. --- 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