From 12e2c79862407817b1ed71ad31dfdef34f4f5497 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 14 Nov 2008 13:18:21 +0100 Subject: [PATCH] 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. --- influences/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) -- 2.30.2