* Don't let influences be edited in-line in the admin, this didn't work well yet.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 1 Feb 2008 09:23:35 +0000 (10:23 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 1 Feb 2008 09:23:35 +0000 (10:23 +0100)
 * Allow an Influence's result to be blank.

influences/models.py

index 2291d701b2c3b294bdf467201b233ed5bc71d79e..df1ba7900474289a0621444ac421964a02a999ed 100644 (file)
@@ -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