From: Matthijs Kooijman Date: Fri, 14 Nov 2008 12:18:21 +0000 (+0100) Subject: Make Influence.status a CharField. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=12e2c79862407817b1ed71ad31dfdef34f4f5497;p=matthijs%2Fprojects%2Fxerxes.git Make Influence.status a CharField. This used to be a TextField, but this forces the widget in a ModelField to a TextArea overriding the default Select widget. --- diff --git a/influences/models.py b/influences/models.py index 78daa15..e6e2d2c 100644 --- a/influences/models.py +++ b/influences/models.py @@ -42,7 +42,7 @@ class Influence(models.Model): contact = models.CharField(max_length=255, verbose_name = _("Contact Name")) 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")) + status = models.CharField(max_length=1, choices=STATUS_CHOICES, default='N', verbose_name = _("Status")) longterm = models.BooleanField(default=False, verbose_name = _("Long term")) result = models.TextField(blank=True,verbose_name = _("Result"))