Re: Using choices with list_display

2006-08-18 Thread Tim Shaffer
Thanks... that fixed it. I don't know how I missed that. It's always the simple things. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Re: Using choices with list_display

2006-08-18 Thread Adrian Holovaty
On 8/18/06, Tim Shaffer <[EMAIL PROTECTED]> wrote: > RECURRENCE_CHOICES = ( > ('1', 'Daily'), > ('2', 'Weekly'), > ('3', 'Monthly'), > ('4', 'Yearly'), > ) > > class Event(models.Model): > title = models.CharField(maxlength=50) > recurrence = models.SmallIntegerField(blank=

Using choices with list_display

2006-08-18 Thread Tim Shaffer
I have a model that holds events... simplified, it looks like this: RECURRENCE_CHOICES = ( ('1', 'Daily'), ('2', 'Weekly'), ('3', 'Monthly'), ('4', 'Yearly'), ) class Event(models.Model): title = models.CharField(maxlength=50) recurrence = models.SmallIntegerField(blank=T